Changeset 2161 for trunk/packages/invirt-autoinstaller
- Timestamp:
- Feb 17, 2009, 5:01:23 AM (16 years ago)
- Location:
- trunk/packages/invirt-autoinstaller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/common/usr/sbin/invirt-create-image
r1497 r2161 3 3 # "arguments" come in environment: 4 4 # TARGET a device filename 5 # FSSIZE the desired filesystem size in me gabytes (rest will be swap)5 # FSSIZE the desired filesystem size in mebibytes (rest will be swap) 6 6 # ARCH, DIST, MIRROR 7 7 # HOSTNAME, IP -
trunk/packages/invirt-autoinstaller/debian/changelog
r2128 r2161 1 invirt-autoinstaller (0.0.14) jaunty; urgency=low 2 3 * Don't confuse MB with MiB. 4 5 -- Anders Kaseorg <andersk@mit.edu> Tue, 17 Feb 2009 04:56:38 -0500 6 1 7 invirt-autoinstaller (0.0.13) unstable; urgency=low 2 8 -
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.