Skip to content

Commit

Permalink
chore: Check for bootupctl in post-build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Sep 25, 2024
1 parent 90079a9 commit 5cf1ce6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit 5cf1ce6

Please sign in to comment.