From 86fe8387bb8f0da80f4d69a1d606128aae8f0551 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 22 Mar 2026 04:58:24 +0100 Subject: [PATCH] install stage 1: add an error check on installing base system --- install-stage1.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-stage1.sh b/install-stage1.sh index 5dda71f..897ecac 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -253,6 +253,11 @@ XBPS_ARCH="$TARGET_TYPE" xbps-install --yes --sync --rootdir /mnt/target --repos diffutils pciutils usbutils tzdata base-files ncurses mdocml procps-ng \ kbd xbps sudo ethtool kmod eudev runit-void removed-packages nano acpid \ squashfs-tools grub grub-i386-efi grub-x86_64-efi dracut xz 2>&1 | tee --append $LOGFILE +if [ "$?" -ne 0 ]; then + echo "" + echo "An error occurred while trying to install the base system." + exit 1 +fi echo "" echo "Adding mirror configuration."