X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/04a85e82bb3cd2929c4ebb0e8df2a97c73eb4890..0d0b6587c5d55462ed4fcae062e492f1cd8cf594:/common/usr/sbin/sipb-xen-create-image?ds=sidebyside

diff --git a/common/usr/sbin/sipb-xen-create-image b/common/usr/sbin/sipb-xen-create-image
index f0f685a..ffba79d 100644
--- a/common/usr/sbin/sipb-xen-create-image
+++ b/common/usr/sbin/sipb-xen-create-image
@@ -7,8 +7,12 @@
 
 echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
 
+kpartx -a "$TARGET"    # should be no-op in guest
+
 xen-create-image --image-dev "${TARGET}1" --swap-dev "${TARGET}2" --fs ext3 --ide \
  --hostname "$HOSTNAME" --ip="$IP" --netmask=255.255.0.0 --gateway=18.181.0.1 \
  --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes
 
+kpartx -d $VOLUME
+
 exit 0