1
0

Install u-boot only on armv7hl systems

U-Boot is not available for AArch64, so this causes basesystem setup
to fail when producing AArch64 images.
This commit is contained in:
Neal Gompa 2020-01-05 14:00:08 -05:00
parent 58f1fc7975
commit 3d71025331

View File

@ -229,11 +229,18 @@ function installbasesystem()
# error "line ${LINENO} error installing basesystem-minimal : exiting" # error "line ${LINENO} error installing basesystem-minimal : exiting"
# exit ${ERR_1} # exit ${ERR_1}
#fi #fi
/usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install dnf dnf-plugins-core locales u-boot /usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install dnf dnf-plugins-core locales
if [ ${?} -ne 0 ]; then if [ ${?} -ne 0 ]; then
error "line ${LINENO} error installing dnf or locales : exiting" error "line ${LINENO} error installing dnf or locales : exiting"
exit ${ERR_1} exit ${ERR_1}
fi fi
if [ "${ARM_VERSION}" = "armv7hl" ]; then
/usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install u-boot
if [ ${?} -ne 0 ]; then
error "line ${LINENO} error installing u-boot : exiting"
exit ${ERR_1}
fi
fi
/usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install urpmi /usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install urpmi
if [ ${?} -ne 0 ]; then if [ ${?} -ne 0 ]; then
error "line ${LINENO} error installing urpmi : exiting" error "line ${LINENO} error installing urpmi : exiting"