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
This commit is contained in:
Michael Johnson 2019-06-07 09:43:42 -07:00
parent 0a44028b97
commit 5f4b764a11
2 changed files with 1 additions and 13 deletions

View File

@ -1,7 +1,2 @@
export DISTRO_NAME=rhel export DISTRO_NAME=rhel
export DIB_RELEASE=${DIB_RELEASE:-8} 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

View File

@ -17,14 +17,7 @@
source $_LIB/common-defaults source $_LIB/common-defaults
# options for create-baremetal-image.sh # options for create-baremetal-image.sh
if [ "${DISTRO_NAME}" = "rhel" ] && [ "${DIB_RELEASE}" = "8" ]; then export FS_TYPE=${FS_TYPE:-ext4}
# 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}
# Used to set the file extension only at this stage. # Used to set the file extension only at this stage.
export IMAGE_TYPE=${IMAGE_TYPE:-qcow2} export IMAGE_TYPE=${IMAGE_TYPE:-qcow2}
export IMAGE_NAME=${IMAGE_NAME:-image} export IMAGE_NAME=${IMAGE_NAME:-image}