particle-os-cli/scripts/post_build.sh
2024-09-28 20:21:21 -04:00

14 lines
423 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# See issue https://github.com/coreos/bootupd/issues/635
# 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/*
ostree container commit