install_stage2: automatically create new system image, remove unused function press_any_key

master
BodgeMaster 2026-07-16 16:34:31 +02:00
parent a575eafb66
commit e1ea6fb451
1 changed files with 4 additions and 8 deletions

View File

@ -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