From 4ba64868470d4689b9a84af4ae3569d9b3f4d63a Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 30 Jun 2023 12:36:10 +0200 Subject: [PATCH] install stage 1: set up stage 2 and reboot --- install-stage1.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/install-stage1.sh b/install-stage1.sh index 51ff99b..45b92ba 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -363,8 +363,27 @@ echo -n "Reconfiguring all installed packages... " run_in_target xbps-reconfigure -fa >> $LOGFILE 2>&1 echo "done" +echo -n "Adding stage 2 installer... " +wget --output-document=/mnt/target/install-stage2.sh https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/install-stage2.sh >> $LOGFILE 2>&1 +chmod 744 /mnt/target/install-stage2.sh >> $LOGFILE 2>&1 +echo "menuentry 'Continue Void-USB Installation' { + echo 'Loading Linux...' + linux $(run_in_target find /boot -type l -name "vmlinu*") quiet root=/dev/loop0 ro void-usb-container=UUID=$(lsblk --raw --noheadings --output UUID "$TARGET_PART_BIG") init=/install-stage2.sh + echo 'Loading initial ramdisk...' + initrd $(run_in_target find /boot -type l -name "init*") +}" >> /mnt/target/boot/efi/LOADER/grub/custom_before.cfg +echo "done" + echo "Creating system image..." #TODO: make this work without user interaction run_in_target /opt/void-usb/backup-fs +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. +" +press_any_key +reboot #