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:
parent
2b8ba0f531
commit
c88cfa3bc2
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user