From c88cfa3bc2867b27fa144433cb0d4f09a8e7ff09 Mon Sep 17 00:00:00 2001 From: Daniel Clavijo Coca Date: Fri, 29 Apr 2022 02:35:49 -0500 Subject: [PATCH] B OpenNebula/one#5810: Handle XFS differently (#1986) --- src/mad/sh/scripts_common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 43039be15c..df163eb999 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -438,7 +438,12 @@ function mkfs_command { # Image create is required because of old MKFS version in c7 echo "$QEMU_IMG create -f raw ${DST} ${SIZE}M" - echo "$MKFS -F -t ${FS} ${FS_OPTS} ${DST}" + + if [ $FS == xfs ]; then + echo "$MKFS.xfs -f ${FS_OPTS} ${DST}" + else + echo "$MKFS -F -t ${FS} ${FS_OPTS} ${DST}" + fi if [ "$FORMAT" = "qcow2" ]; then echo "$QEMU_IMG convert -f raw -O qcow2 ${DST} ${DST}.qcow2"