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
tweak autoinstall scripts
[invirt/packages/invirt-autoinstaller.git]
/
host
/
usr
/
sbin
/
sipb-xen-install
diff --git
a/host/usr/sbin/sipb-xen-install
b/host/usr/sbin/sipb-xen-install
index
b7d9c66
..
81cea3f
100644
(file)
--- a/
host/usr/sbin/sipb-xen-install
+++ b/
host/usr/sbin/sipb-xen-install
@@
-6,10
+6,11
@@
export PATH #WTF?
export PATH #WTF?
+LVNAME="$1"
export HOSTNAME="$2"
export DIST="$3"
export MIRROR="$4"
export HOSTNAME="$2"
export DIST="$3"
export MIRROR="$4"
-export IMAGESIZE="$5"
+export IMAGESIZE="$5" # in megabytes
export IP="$6"
export ARCH=amd64
export IP="$6"
export ARCH=amd64
@@
-20,7
+21,7
@@
if [ -z "$IP" ]; then
IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1`
fi
IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1`
fi
-export TARGET=/dev/mapper/xenvg-d_$(echo "$HOSTNAME" | sed -e 's/-/--/g')_hda
+export TARGET=/dev/mapper/xenvg-$(echo "$LVNAME" | sed -e 's/-/--/g')_hda
/usr/sbin/sipb-xen-create-image
/usr/sbin/sipb-xen-create-image