1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B OpenNebula/one#5810: Handle XFS differently (#1986)

This commit is contained in:
Daniel Clavijo Coca 2022-04-29 02:35:49 -05:00 committed by GitHub
parent 2b8ba0f531
commit c88cfa3bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"