X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/dfaf9cfe97ae787cfae45e0860a8717cb20b7028..a485b225bf3f1923002a6b89d57e436129b8553c:/host/usr/sbin/sipb-xen-install diff --git a/host/usr/sbin/sipb-xen-install b/host/usr/sbin/sipb-xen-install index ad72827..6784e52 100644 --- a/host/usr/sbin/sipb-xen-install +++ b/host/usr/sbin/sipb-xen-install @@ -1,22 +1,32 @@ -#!/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" +set -e -VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda +export PATH #WTF? -cat > $VOLUME <