Ignore:
Timestamp:
Feb 17, 2009, 5:01:23 AM (15 years ago)
Author:
andersk
Message:

Don't confuse {KB, MB, GB} with {KiB, MiB, GiB}.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-autoinstaller/host/usr/sbin/invirt-install

    r1497 r2161  
    1313export DIST="$3"
    1414export MIRROR="$4"
    15 export FSSIZE="$5"    # in megabytes
    16 SWAPSIZE="$6"  # in megabytes
     15export FSSIZE="$5"    # in mebibytes
     16SWAPSIZE="$6"  # in mebibytes
    1717export IP="$7"
    1818
     
    2020VGNAME=xenvg
    2121
    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/\..*//'`
    2323
    2424if [ -z "$IP" ]; then
     
    2626fi
    2727
    28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))M -n "${NAME}_hda" $VGNAME
     28/sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME
    2929
    3030export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"
Note: See TracChangeset for help on using the changeset viewer.