From 5f4b764a1188c1ce1f18207060b8cd97d5089b5e Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 7 Jun 2019 09:43:42 -0700 Subject: [PATCH] Remove the rhel 8 check for xfs This patch removes the check and default for rhel 8 requiring xfs filesystem as rhel 8 images can successfully be built with ext4 filesystems. Change-Id: I1a6bfa26324fd43ae0c77c2c977dda0dd56e26e5 --- .../elements/rhel/environment.d/10-rhel-distro-name.bash | 5 ----- diskimage_builder/lib/img-defaults | 9 +-------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/diskimage_builder/elements/rhel/environment.d/10-rhel-distro-name.bash b/diskimage_builder/elements/rhel/environment.d/10-rhel-distro-name.bash index 54c2a3de6..0fe70cd12 100644 --- a/diskimage_builder/elements/rhel/environment.d/10-rhel-distro-name.bash +++ b/diskimage_builder/elements/rhel/environment.d/10-rhel-distro-name.bash @@ -1,7 +1,2 @@ export DISTRO_NAME=rhel export DIB_RELEASE=${DIB_RELEASE:-8} - -if [ "${DISTRO_NAME}" = "rhel" ] && [ "${DIB_RELEASE}" = "8" ] && [ "${FS_TYPE}" != "xfs" ]; then - echo "ERROR: RHEL8 images file-system type must be set to xfs, FS_TYPE is currently set to" $FS_TYPE - exit 1 -fi diff --git a/diskimage_builder/lib/img-defaults b/diskimage_builder/lib/img-defaults index a36698e60..1bdf6431a 100644 --- a/diskimage_builder/lib/img-defaults +++ b/diskimage_builder/lib/img-defaults @@ -17,14 +17,7 @@ source $_LIB/common-defaults # options for create-baremetal-image.sh -if [ "${DISTRO_NAME}" = "rhel" ] && [ "${DIB_RELEASE}" = "8" ]; then - # xfs is the default file-system for RHEL8 - export DEFAULT_FS_TYPE=xfs -else - export DEFAULT_FS_TYPE=ext4 -fi - -export FS_TYPE=${FS_TYPE:-$DEFAULT_FS_TYPE} +export FS_TYPE=${FS_TYPE:-ext4} # Used to set the file extension only at this stage. export IMAGE_TYPE=${IMAGE_TYPE:-qcow2} export IMAGE_NAME=${IMAGE_NAME:-image}