installer: fail early

If e.g. the required packages for the git build cannot be installed,
abort early instead of attempting to build the installer.
This commit is contained in:
Roland Clobus 2022-11-13 11:19:00 +00:00 committed by Luca Boccassi
parent 7cdb395dd9
commit dcbbfed463
1 changed files with 3 additions and 0 deletions

View File

@ -269,6 +269,9 @@ case "${LB_DERIVATIVE}" in
cat << EOF > chroot/buildit.sh cat << EOF > chroot/buildit.sh
#!/bin/sh #!/bin/sh
# Get the version of the git repo that matches SOURCE_DATE_EPOCH # Get the version of the git repo that matches SOURCE_DATE_EPOCH
set -e
DEBIAN_INSTALLER=/debian-installer DEBIAN_INSTALLER=/debian-installer
mkdir -p \${DEBIAN_INSTALLER} mkdir -p \${DEBIAN_INSTALLER}
git clone https://salsa.debian.org/installer-team/debian-installer.git \${DEBIAN_INSTALLER} --single-branch --no-tags --quiet git clone https://salsa.debian.org/installer-team/debian-installer.git \${DEBIAN_INSTALLER} --single-branch --no-tags --quiet