Ensure to import all gpgkeys

This commit is contained in:
Lubos Kocman 2024-06-24 13:13:38 +02:00
parent 876b377d8e
commit ddbf660c8d

View File

@ -314,4 +314,17 @@ if [[ "$kiwi_profiles" =~ ^(x86-qcow|x86-vmware|aarch64-qcow)$ ]]; then
echo "policy: search,found=all,maybe=disabled,notfound=disabled" > /etc/cloud/ds-identify.cfg
fi
#======================================
# Import trusted rpm keys
#--------------------------------------
for i in /usr/lib/rpm/gnupg/keys/gpg-pubkey*asc; do
# importing can fail if it already exists
rpm --import $i || true
done
#======================================
# Refresh zypper services / repos
#--------------------------------------
zypper refs
exit 0