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."