From e1ea6fb4517f13f4339e8ad5fd28f4db641756f3 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 16 Jul 2026 16:34:31 +0200 Subject: [PATCH] install_stage2: automatically create new system image, remove unused function press_any_key --- install-stage2.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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