install_stage2: automatically create new system image, remove unused function press_any_key
parent
a575eafb66
commit
e1ea6fb451
|
|
@ -3,12 +3,6 @@
|
||||||
LOGFILE=/tmp/void-usb-install-log
|
LOGFILE=/tmp/void-usb-install-log
|
||||||
STAGE2_DIR="/usr/local/sbin/installer/"
|
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 {
|
function yesno {
|
||||||
unset DISCARD_ME
|
unset DISCARD_ME
|
||||||
while [ -z "$DISCARD_ME" ]; do
|
while [ -z "$DISCARD_ME" ]; do
|
||||||
|
|
@ -145,8 +139,10 @@ fi
|
||||||
rm -rf "$STAGE2_DIR"
|
rm -rf "$STAGE2_DIR"
|
||||||
|
|
||||||
clear
|
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
|
reboot
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue