fix: May not be possible to just install bootc, run bootupctl if bootc already exists

This commit is contained in:
Gerald Pinder 2024-09-23 12:01:46 -04:00
parent 486961f3d3
commit 741ec811df

View file

@ -2,10 +2,9 @@
set -euo pipefail
if ! command -v bootc; then
rpm-ostree install bootc
if command -v bootc; then
bootupctl backend generate-update-metadata
fi
bootupctl backend generate-update-metadata
rm -fr /tmp/* /var/*
ostree container commit