From ad1fe22d1a6215ca8ec0390b98f961204d9c4e68 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sat, 30 Mar 2024 02:57:46 -0400 Subject: [PATCH] fix: bash -c, so chroot has .bashrc PATH --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index af2b8e4..d840572 100755 --- a/install.sh +++ b/install.sh @@ -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."