diff --git a/install-stage2.sh b/install-stage2.sh index 00b8e3d..d38fd9a 100644 --- a/install-stage2.sh +++ b/install-stage2.sh @@ -3,12 +3,6 @@ LOGFILE=/tmp/void-usb-install-log STAGE2_DIR="/usr/local/sbin/installer/" -function press_any_key { - echo "Press any key to continue or Ctrl+c to abort..." - read -n1 DISCARD_ME - echo "" -} - function yesno { unset DISCARD_ME while [ -z "$DISCARD_ME" ]; do @@ -145,8 +139,10 @@ fi rm -rf "$STAGE2_DIR" clear -echo "To save the changes made to the system, a new system image needs to be created. -The system will reboot now. While shutting down, you will be asked about creating a system image. Choose yes." +touch /run/void-usb/system-image-auto-confirm-marker +echo "To save the changes made to the system, a new system image will be created. +Please do not interrupt this process. +The system will reboot when done." reboot