tweaks
This commit is contained in:
+8
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user