install stage 1: Move creation of system image to the very end

master
BodgeMaster 2023-07-02 22:57:05 +02:00
parent 14457b1168
commit 3035bd4504
1 changed files with 7 additions and 5 deletions

View File

@ -434,16 +434,18 @@ fi" > /mnt/target/root/.profile
echo "done"
echo "Creating system image..."
#TODO: make this work without user interaction
run_in_target /opt/void-usb/backup-fs
# This is not technically necessary, but it should help to save some memory.
# TODO: Be smart about this, run install stage 2 in chroot if there is enough free RAM
clear
echo "Stage 1 installation is now complete.
The freshly installed system needs to be booted to continue with stage 2 of the installation process.
The installer will now reboot the computer.
The installer will now create a system image and reboot the computer.
"
press_any_key
echo "Creating system image..."
#TODO: make this work without user interaction
run_in_target /opt/void-usb/backup-fs
reboot
#