From 1a981e96eb84260bcc57b66e6d37c33604c69501 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 2 Aug 2019 12:07:38 -0700 Subject: [PATCH] tweaks --- maintenance.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/maintenance.sh b/maintenance.sh index 1bf1e69..bcc6924 100644 --- a/maintenance.sh +++ b/maintenance.sh @@ -36,7 +36,14 @@ echo "Entering chroot..." echo "Please execute \"mount /boot\" to access boot partition, type exit to leave:" echo "" -chroot /mnt /bin/bash --login < /dev/tty +echo "#!/bin/bash" > /mnt/maintenance.sh +chmod +x /mnt/maintenance.sh +echo "zfs mount -a && mount /boot" >> /mnt/maintenance.sh +echo "/bin/bash" >> /mnt/maintenance.sh + +chroot /mnt /maintenance.sh --login < /dev/tty + +rm /mnt/maintenance.sh if ! [ "$?" = "0" ]; then echo "Chroot failed with an error"