From f6e6323bf70e475a41614519eaef20f90dd774ad Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Feb 2020 22:58:51 +0100 Subject: [PATCH] corrected path to dnf config --- create_arm_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_arm_image.sh b/create_arm_image.sh index b07e3ea..2754368 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -125,7 +125,7 @@ function createchroot() # enabling extra Mageia repositories function genusemirroroptions() { - DNF_CONFIGPATH="$(dirname $(realpath "$0"))/../mageia4arm-dnf.conf" + DNF_MIRROROPTS="--config=${DNF_CONFIGPATH} --forcearch=${ARM_VERSION} --nogpgcheck --releasever=${MAGEIA_VERSION}" if [ ! -z "${MIRROR}" ]; then DNF_MIRROROPTS="${DNF_MIRROROPTS} --disablerepo=* --repofrompath=mgarel,${MIRROR}/media/core/release/ --repofrompath=mgaup,${MIRROR}/media/core/updates/ --enablerepo=mgarel --enablerepo=mgaup" @@ -930,7 +930,7 @@ BOOT="/mnt/boot" ROOT="/mnt/root" BUILD_PATH="${INSTALL_PATH}/build-${TARGET}${TARGET_VERSION}" # ARM_VERSION="armv7hl" - +DNF_CONFIGPATH="$(dirname $(realpath "$0"))/mageia4arm-dnf.conf" # Assigne a script for creating a particular target image (rpi, odroid, ...) if [ -e "${CONFIG_PATH}/specialFunctions.sh" ]; then source "${CONFIG_PATH}/specialFunctions.sh"