diff --git a/create_arm_image.sh b/create_arm_image.sh index b1d6324..b07e3ea 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -234,6 +234,19 @@ function installbasesystem() info "Build path exists" fi + # Workaround mga#26044. + info "Preparing root filesystem tree" + mkdir -p "${BUILD_PATH}/usr/bin" + mkdir -p "${BUILD_PATH}/usr/sbin" + mkdir -p "${BUILD_PATH}/usr/lib" + ln -sr "${BUILD_PATH}/usr/bin" "${BUILD_PATH}/bin" + ln -sr "${BUILD_PATH}/usr/sbin" "${BUILD_PATH}/sbin" + ln -sr "${BUILD_PATH}/usr/lib" "${BUILD_PATH}/lib" + if [ "${ARM_VERSION}" = "aarch64" ]; then + mkdir -p "${BUILD_PATH}/usr/lib64" + ln -sr "${BUILD_PATH}/usr/lib64" "${BUILD_PATH}/lib64" + fi + title "installing basesystem" /usr/bin/dnf --installroot="${BUILD_PATH}" ${DNF_MIRROROPTS} --assumeyes install shadow-utils basesystem-minimal if [ ${?} -ne 0 ]; then