chore: Check for bootupctl in post-build script
This commit is contained in:
parent
90079a974a
commit
5cf1ce66a0
1 changed files with 4 additions and 1 deletions
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue