diff --git a/scripts/image/setup.sh b/scripts/image/setup.sh index b6308f8..9d584d5 100644 --- a/scripts/image/setup.sh +++ b/scripts/image/setup.sh @@ -470,7 +470,7 @@ if [ "$encrypt_system" == "y" ] echo "echo \"Content of $boot_txt_path:\$(cat \"$boot_txt_path\")\" &&" echo "cd /boot/ && ./mkscr &&" echo "umount $root_mapper_path &&" - echo "exit" + echo "exit || echo 'Error in chroot environment!' && exit 1" ) | chroot "$root_mount_path" /bin/bash || error fi