From adb9ab90b560edac4f86b3ac412ecd57f53687c6 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Sat, 30 May 2020 10:03:28 +0200 Subject: [PATCH] Check if pakfire has run successfully Signed-off-by: Jonatan Schlag --- generate_image.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 # -- 2.47.2