From 1c607bd09a9c46afd5c695abc4a11ebe906dc461 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 10 Jul 2019 18:12:50 -0700 Subject: [PATCH] tweaks --- setup.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/setup.sh b/setup.sh index e9a0e0f..5e563e8 100644 --- a/setup.sh +++ b/setup.sh @@ -370,26 +370,26 @@ if ! [ "$?" = "0" ]; then fi # commented out for debugging -#echo "" -#echo "Clearing chroot configuration script..." -#rm /mnt/setup-chroot.sh -#echo "Done." - -#echo "" -#echo "Unmounting chroot mounts..." -#mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -i{} umount -lf {} -#echo "Done." - -#echo "" -#echo "Exporting zpools..." -#errors=`zpool export -a 2>&1 1>/dev/null` -#if ! [ "$?" = "0" ]; then -# echo "Couldn't export mounted zpools - $errors" -# exit 8 -#fi -#echo "Done." - -#echo "Congratulations! The install was successful. Please reboot and set your boot device using UEFI in the BIOS." +echo "" +echo "Clearing chroot configuration script..." +rm /mnt/setup-chroot.sh +echo "Done." + +echo "" +echo "Unmounting chroot mounts..." +mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -i{} umount -lf {} +echo "Done." + +echo "" +echo "Exporting zpools..." +errors=`zpool export -a 2>&1 1>/dev/null` +if ! [ "$?" = "0" ]; then + echo "Couldn't export mounted zpools - $errors" + exit 8 +fi +echo "Done." + +echo "Congratulations! The install was successful. Please reboot and set your boot device using UEFI in the BIOS." exit 0 #sed -i -r "s/(^|[^#y])(compress)/\1#\2/" "$file" \ No newline at end of file