fix(signing): Remove workaround for ublue-os images on using /usr/etc/

It's not needed anymore & it breaks the build, since the introduction of bootc lint in latest bluebuild cli.
This commit is contained in:
fiftydinar 2025-06-01 02:27:30 +02:00 committed by GitHub
parent 308f78b7fe
commit 7d2529e9d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,17 +29,7 @@ if ! [ -f "/etc/pki/containers/${IMAGE_NAME_FILE}.pub" ]; then
fi
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
if ! [ -d "/usr/etc/containers/" ]; then
mkdir -p "/usr/etc/containers/"
fi
POLICY_FILE="/usr/etc/containers/policy.json"
else
POLICY_FILE="${CONTAINER_DIR}/policy.json"
fi
POLICY_FILE="${CONTAINER_DIR}/policy.json"
# If there is no policy.json file, then copy the template policy
if ! [ -f "${POLICY_FILE}" ]; then