Revision 7c1b7bc2 src/tm_mad/vmware/mkimage

View differences:

src/tm_mad/vmware/mkimage
44 44
#-------------------------------------------------------------------------------
45 45
DST_PATH=`arg_path $DST`
46 46
DST_HOST=`arg_host $DST`
47
DST_DIR=`dirname $DST_PATH`
48 47

  
49
ssh_make_path $DST_HOST $DST_DIR
48
ssh_make_path $DST_HOST $DST_PATH
50 49

  
51 50
#-------------------------------------------------------------------------------
52 51
# Make the new image (file-based)
53 52
#-------------------------------------------------------------------------------
54 53
MKFS_CMD=`mkfs_command $DST_PATH $FSTYPE $SIZE`
55 54

  
56
CREATE_IMAGE="mkdir -p $DST_PATH"
57
 
58 55
MKSCRIPT=$(cat <<EOF
59 56
export PATH=/usr/sbin:/sbin:\$PATH
60
$CREATE_IMAGE
61 57
$MKFS_CMD
62 58
EOF
63 59
)
64 60

  
65 61
log "Making filesystem of ${SIZE}M and type $FSTYPE at $DST"
66 62

  
67
ssh_exec_and_log $DST_HOST "$MKSCRIPT" "Could not create image $DST_PATH"
63
ssh_exec_and_log $DST_HOST "$MKSCRIPT" "Could not create image $DST_PATH/disk.vmdk"
68 64

  
69 65
exit 0

Also available in: Unified diff