mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
feature #1373: Refine volatile disk generation in vmware
This commit is contained in:
1 parent
4a9fadf7d4
commit
4e3a37401d
1 file changed
+2
-6
@@ -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
|
||||
Reference in new issue
Block a user