diff --git a/create_arm_image.sh b/create_arm_image.sh index 2479390..7b8e941 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -85,6 +85,15 @@ function verify_disk_space() function createchroot() { title "Making chroot" + if ! [ -f /usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia ]; then + title "distribution-gpg-keys package not present : installing distribution-gpg-keys" + /usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install distribution-gpg-keys + if [ ${?} -ne 0 ]; then + error "line ${LINENO} can't install distribution-gpg-keys : exiting" + exit ${ERR_1} + fi + fi + if ! [ -f /bin/qemu-arm-static ]; then title "Qemu package not present : installing qemu packages" /usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install qemu-user-static