From a082822a55d22fcf5930940341b94414f209946f Mon Sep 17 00:00:00 2001
From: Eric Price <ecprice@mit.edu>
Date: Sun, 27 Jul 2008 23:50:12 -0400
Subject: [PATCH] Rename package.

svn path=/trunk/packages/sipb-xen-autoinstaller/; revision=745
---
 debian/changelog                            |    6 +++
 debian/control                              |    2 +-
 debian/sipb-xen-autoinstaller-guest.install |    1 +
 debian/sipb-xen-autoinstaller-host.install  |    1 +
 debian/sipb-xen-guest-installer.postinst    |   53 ---------------------------
 5 files changed, 9 insertions(+), 54 deletions(-)
 create mode 100644 debian/sipb-xen-autoinstaller-guest.install
 create mode 100644 debian/sipb-xen-autoinstaller-host.install
 delete mode 100755 debian/sipb-xen-guest-installer.postinst

diff --git a/debian/changelog b/debian/changelog
index 6ed8a3f..db484ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sipb-xen-autoinstaller (2.0) unstable; urgency=low
+
+  * Move the autoinstall inside a VM.
+
+ -- Eric Price <ecprice@mit.edu>  Sun, 27 Jul 2008 23:47:02 -0400
+
 sipb-xen-guest-installer (1.4) unstable; urgency=low
 
   * sipb-xen-install, using xen-create-image, which uses debootstrap
diff --git a/debian/control b/debian/control
index 2f15ed2..a503650 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Standards-Version: 3.7.2
 
 Package: sipb-xen-autoinstaller-guest
 Architecture: all
-Depends: ${misc:Depends}, patch, xen-tools, kpartx, lvm2
+Depends: ${misc:Depends}, patch, xen-tools
 Description: SIPB Xen automatic guest-image installer system (guest)
  This is our automatic guest-image installer system.
 
diff --git a/debian/sipb-xen-autoinstaller-guest.install b/debian/sipb-xen-autoinstaller-guest.install
new file mode 100644
index 0000000..0134111
--- /dev/null
+++ b/debian/sipb-xen-autoinstaller-guest.install
@@ -0,0 +1 @@
+guest/* .
diff --git a/debian/sipb-xen-autoinstaller-host.install b/debian/sipb-xen-autoinstaller-host.install
new file mode 100644
index 0000000..260c50b
--- /dev/null
+++ b/debian/sipb-xen-autoinstaller-host.install
@@ -0,0 +1 @@
+host/* .
diff --git a/debian/sipb-xen-guest-installer.postinst b/debian/sipb-xen-guest-installer.postinst
deleted file mode 100755
index 7f2af3e..0000000
--- a/debian/sipb-xen-guest-installer.postinst
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# postinst script for sipb-xen-guest-installer
-#
-# see: dh_installdeb(1)
-
-set -e
-set -x
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    configure)
-	for d in /srv/guest-installer/*; do
-	    # download the actual iso, unpack it, patch it.
-	    wget -nc -i $d/iso.url -O $d/cdrom.orig.iso
-	    MOUNTDIR=$(mktemp -d /mnt/sipb-xen-guest-installer.cdrom.XXXXXX)
-	    mount -t iso9660 -o loop $d/cdrom.orig.iso $MOUNTDIR
-	    rm -rf $d/cdrom.orig; cp -a $MOUNTDIR $d/cdrom.orig
-	    umount $MOUNTDIR; rmdir $MOUNTDIR
-	    rm -rf $d/cdrom; cp -a $d/cdrom.orig $d/cdrom
-	    patch -d $d/cdrom -p1 <$d/cdrom.patch
-	    tar cf - -C $d/cdrom.supplement . | tar xf - -C $d/cdrom
-	done
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
-- 
1.7.9.5