fix: Add post build script to prepare image for ISO creation

This commit is contained in:
Gerald Pinder 2024-09-16 12:14:05 -04:00
parent fbf57e5c83
commit de45aeb015
2 changed files with 13 additions and 1 deletions

11
scripts/post_build.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
if ! command -v bootc; then
rpm-ostree install bootc
fi
bootupctl backend generate-update-metadata
rm -fr /tmp/* /var/*
ostree container commit