X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/dfaf9cfe97ae787cfae45e0860a8717cb20b7028..0d0b6587c5d55462ed4fcae062e492f1cd8cf594:/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 ad72827..b7d9c66 100644 --- a/host/usr/sbin/sipb-xen-install +++ b/host/usr/sbin/sipb-xen-install @@ -1,22 +1,26 @@ -#!/bin/bash +#!/bin/sh -export PATH +# If this script is interrupted, it may not clean up after itself. +# In particular, it may leave ${TARGET}1 mounted somewhere in tmp. +# Unmount it, then kpartx -d $TARGET to clean up. -HOSTNAME="$2" -DIST="$3" -MIRROR="$4" -IMAGESIZE="$5" -IP="$6" +export PATH #WTF? -VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda +export HOSTNAME="$2" +export DIST="$3" +export MIRROR="$4" +export IMAGESIZE="$5" +export IP="$6" -cat > $VOLUME <