fix: bash -c, so chroot has .bashrc PATH

This commit is contained in:
Yingjie Wang 2024-03-30 02:57:46 -04:00
parent aa9b97dc4f
commit ad1fe22d1a

View File

@ -19,6 +19,6 @@ echo "export PATH=$PATH:/sbin/" >>$TARGET/root/.bashrc
cp ./chroot-commands.sh $TARGET/root/
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."