X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/dfaf9cfe97ae787cfae45e0860a8717cb20b7028..fe25c3ed3e4d7a5ea479a5fdb03a39450c4e8618:/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..b8acec3 100644 --- a/host/usr/sbin/sipb-xen-install +++ b/host/usr/sbin/sipb-xen-install @@ -1,22 +1,35 @@ -#!/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 <>/etc/xen/$HOSTNAME.cfg +echo "root = '/dev/hda1 ro'" >>/etc/xen/$HOSTNAME.cfg