feature #1373: Refine volatile disk generation in vmware

This commit is contained in:
Tino Vazquez committed 2012-07-20 16:03:17 +02:00
1 parent 4a9fadf7d4
commit 4e3a37401d
1 file changed
+2 -6
+2 -6
View File
@@ -44,26 +44,22 @@ fi
#-------------------------------------------------------------------------------
DST_PATH=`arg_path $DST`
DST_HOST=`arg_host $DST`
DST_DIR=`dirname $DST_PATH`
ssh_make_path $DST_HOST $DST_DIR
ssh_make_path $DST_HOST $DST_PATH
#-------------------------------------------------------------------------------
# Make the new image (file-based)
#-------------------------------------------------------------------------------
MKFS_CMD=`mkfs_command $DST_PATH $FSTYPE $SIZE`
CREATE_IMAGE="mkdir -p $DST_PATH"
MKSCRIPT=$(cat <<EOF
export PATH=/usr/sbin:/sbin:\$PATH
$CREATE_IMAGE
$MKFS_CMD
EOF
)
log "Making filesystem of ${SIZE}M and type $FSTYPE at $DST"
ssh_exec_and_log $DST_HOST "$MKSCRIPT" "Could not create image $DST_PATH"
ssh_exec_and_log $DST_HOST "$MKSCRIPT" "Could not create image $DST_PATH/disk.vmdk"
exit 0