]> git.ipfire.org Git - people/jschlag/ipfire-3.x-image.git/commitdiff
Check if pakfire has run successfully spring-cleanup
authorJonatan Schlag <kontakt@jonatanschlag.de>
Sat, 30 May 2020 08:03:28 +0000 (10:03 +0200)
committerJonatan Schlag <kontakt@jonatanschlag.de>
Sat, 30 May 2020 08:03:28 +0000 (10:03 +0200)
Signed-off-by: Jonatan Schlag <kontakt@jonatanschlag.de>
generate_image.sh

index 9733107832279c60f3642d56ad6c6a52ddad285e..33a41b3dd3d387a3d74aa4ad222e893830840f25 100755 (executable)
@@ -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
 #