fix: bash -c, so chroot has .bashrc PATH
This commit is contained in:
parent
aa9b97dc4f
commit
ad1fe22d1a
@ -19,6 +19,6 @@ echo "export PATH=$PATH:/sbin/" >>$TARGET/root/.bashrc
|
|||||||
|
|
||||||
cp ./chroot-commands.sh $TARGET/root/
|
cp ./chroot-commands.sh $TARGET/root/
|
||||||
chmod +x $TARGET/root/chroot-commands.sh
|
chmod +x $TARGET/root/chroot-commands.sh
|
||||||
chroot $TARGET /root/chroot-commands.sh
|
chroot $TARGET /bin/bash -l -c '/root/chroot-commands.sh'
|
||||||
|
|
||||||
echo "Done! Should be good to reboot now and run post-install scripts."
|
echo "Done! Should be good to reboot now and run post-install scripts."
|
||||||
|
Loading…
Reference in New Issue
Block a user