projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In invirt-autoinstaller:
[invirt/packages/invirt-autoinstaller.git]
/
host
/
usr
/
sbin
/
invirt-install
diff --git
a/host/usr/sbin/invirt-install
b/host/usr/sbin/invirt-install
index
5a9e8a9
..
2f982cd
100644
(file)
--- a/
host/usr/sbin/invirt-install
+++ b/
host/usr/sbin/invirt-install
@@
-12,20
+12,20
@@
NAME="$1"
export HOSTNAME="$2"
export DIST="$3"
export MIRROR="$4"
export HOSTNAME="$2"
export DIST="$3"
export MIRROR="$4"
-export FSSIZE="$5" # in megabytes
-SWAPSIZE="$6" # in megabytes
+export FSSIZE="$5" # in mebibytes
+SWAPSIZE="$6" # in mebibytes
export IP="$7"
export ARCH=amd64
VGNAME=xenvg
export IP="$7"
export ARCH=amd64
VGNAME=xenvg
-#LVSIZE=`lvs --noheadings --units M --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
+#LVSIZE=`lvs --noheadings --units m --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
if [ -z "$IP" ]; then
IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1`
fi
if [ -z "$IP" ]; then
IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1`
fi
-/sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))M -n "${NAME}_hda" $VGNAME
+/sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME
export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"
export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"