From: Jonatan Schlag Date: Sat, 30 May 2020 08:03:28 +0000 (+0200) Subject: Check if pakfire has run successfully X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fspring-cleanup;p=people%2Fjschlag%2Fipfire-3.x-image.git Check if pakfire has run successfully Signed-off-by: Jonatan Schlag --- diff --git a/generate_image.sh b/generate_image.sh index 9733107..33a41b3 100755 --- a/generate_image.sh +++ b/generate_image.sh @@ -156,6 +156,15 @@ fi # Install IPFire 3.x in the created image. yes | pakfire --root=${IMAGE_MOUNT_DIR} ${ENABLE_LOCAL} install @Base ${PACKAGES} + +# Check if the pakfire command was successful + +if [[ ! ${PIPESTATUS[1]} -eq 0 ]]; then + log ERROR "Failed to bootstrap the system with pakfire" + cleanup + exit ${EXIT_ERROR} +fi + # # Enable serial console #