These changes are needed to fix the broken Arm64 build. Upgrading to
latest pip results in a syntax error in an existing script. Disk Image
Builder tries to build the image in a tmpfs that is limited by RAM which
is too small for the Arm64 image.
Signed-off-by: Paul Carver <pcarver@att.com>
Change-Id: Icf3a896b8ebef04b81bc675e2d63759641e96284
DIB_YUM_REPO_CONF="${REPO_FILES}/repositories.repo ${REPO_FILES}/localrepo.repo" \
DIB_LOCAL_IMAGE=$WORKTMP/base-img/$BASE_IMAGE_NAME \
ELEMENTS_PATH=$scriptdir/dib_elements/ \
- /usr/bin/disk-image-create --root-label img-rootfs --image-size $BASE_IMAGE_SIZE vm centos7 selinux-permissive myproduct ${EXTRA_ELEMENTS:-} -o $TMP_GOLDEN_IMAGE
+ /usr/bin/disk-image-create --root-label img-rootfs --no-tmpfs --image-size $BASE_IMAGE_SIZE vm centos7 selinux-permissive myproduct ${EXTRA_ELEMENTS:-} -o $TMP_GOLDEN_IMAGE
rm -rf $WORKTMP/base-img
xfsprogs \
qemu-img \
${EXTRA_RPM:-} && \
- pip install --upgrade pip && \
+ pip install --upgrade pip==20.3.3 && \
pip install diskimage-builder==2.26.1 && \
pip install zipp && \
true && \