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 #