From 5cf1ce66a0084d2dea9a3799e47f7ffc5bf152e0 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Tue, 24 Sep 2024 12:50:46 -0400 Subject: [PATCH] chore: Check for bootupctl in post-build script --- scripts/post_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/post_build.sh b/scripts/post_build.sh index cf67a9f..e47a5bd 100644 --- a/scripts/post_build.sh +++ b/scripts/post_build.sh @@ -2,8 +2,11 @@ set -euo pipefail -if command -v bootc; then +if command -v bootupctl && [ -f /usr/lib/ostree-boot/efi/EFI ] && [ "$OS_VERSION" -ge "40" ]; then + echo "Generating update metadata" bootupctl backend generate-update-metadata +else + echo "Program bootupctl not installed or EFI file not available, skipping..." fi rm -fr /tmp/* /var/*