mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Bug #1911: VMware and VMFS datastores only accept raw type (it will ignore others)
This commit is contained in:
1 parent
7a371e05c7
commit
7150eb4c4c
1 file changed
-4
@@ -78,14 +78,10 @@ DISK_TMP=$DISK.tmp
|
||||
|
||||
IMAGE_FORMAT=vmdk
|
||||
|
||||
MKFS_CMD=`mkfs_command $DISK_TMP $FSTYPE`
|
||||
|
||||
exec_and_log "mkdir -p $DST" \
|
||||
"Could not create disk directory $DST"
|
||||
exec_and_log "$DD if=/dev/zero of=$DISK_TMP bs=1 count=1 seek=${SIZE}M" \
|
||||
"Could not create temporary image $DISK_TMP"
|
||||
exec_and_log "$MKFS_CMD" \
|
||||
"Unable to create filesystem $FSTYPE in $DISK_TMP"
|
||||
exec_and_log "$QEMU_IMG convert -O $IMAGE_FORMAT $DISK_TMP $DISK" \
|
||||
"Unable to convert to $IMAGE_FORMAT in $DISK_TMP"
|
||||
exec_and_log "rm -f $DISK_TMP" \
|
||||
|
||||
Reference in new issue
Block a user