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
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