X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/0d0b6587c5d55462ed4fcae062e492f1cd8cf594..a6b4b67cebc34d1c7915f420e03b39f5ae4b448d:/host/usr/sbin/sipb-xen-install?ds=sidebyside diff --git a/host/usr/sbin/sipb-xen-install b/host/usr/sbin/sipb-xen-install index b7d9c66..81cea3f 100644 --- a/host/usr/sbin/sipb-xen-install +++ b/host/usr/sbin/sipb-xen-install @@ -6,10 +6,11 @@ export PATH #WTF? +LVNAME="$1" export HOSTNAME="$2" export DIST="$3" export MIRROR="$4" -export IMAGESIZE="$5" +export IMAGESIZE="$5" # in megabytes 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 -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