Changeset 2161 for trunk/packages/invirt-autoinstaller/host/usr
- Timestamp:
- Feb 17, 2009, 5:01:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/host/usr/sbin/invirt-install
r1497 r2161 13 13 export DIST="$3" 14 14 export MIRROR="$4" 15 export FSSIZE="$5" # in me gabytes16 SWAPSIZE="$6" # in me gabytes15 export FSSIZE="$5" # in mebibytes 16 SWAPSIZE="$6" # in mebibytes 17 17 export IP="$7" 18 18 … … 20 20 VGNAME=xenvg 21 21 22 #LVSIZE=`lvs --noheadings --units M--nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`22 #LVSIZE=`lvs --noheadings --units m --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'` 23 23 24 24 if [ -z "$IP" ]; then … … 26 26 fi 27 27 28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE)) M-n "${NAME}_hda" $VGNAME28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME 29 29 30 30 export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"
Note: See TracChangeset
for help on using the changeset viewer.