chore(signing): Make a directory in /usr/etc for Ublue images if not already made

This commit is contained in:
fiftydinar 2024-12-08 22:58:58 +01:00 committed by GitHub
parent 40cfcc6646
commit 12d052668f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,7 @@ TEMPLATE_POLICY="${MODULE_DIRECTORY}/signing/policy.json"
# Copy policy.json to '/usr/etc/containers/' on Universal Blue based images
# until they solve the issue by copying 'policy.json' to '/etc/containers/' instead
if rpm -q ublue-os-signing &>/dev/null; then
mkdir -p "/usr/etc/containers/"
POLICY_FILE="/usr/etc/containers/policy.json"
else
POLICY_FILE="${CONTAINER_DIR}/policy.json"