+++ /dev/null
-#!/bin/bash
-# hda is the copying-installer image itself
-# hdb is unused (was the source image)
-# hdc is the target image
-# hdd is the arguments image
-
-exec 3</dev/hdd
-read -r -u 3 HOSTNAME
-read -r -u 3 ROOTPW
-exec 3<&-
-
-mount /dev/hdc1 /mnt/new
-/mnt/new/post-copy /mnt/new "$HOSTNAME" "$ROOTPW"
-umount /mnt/new
-sync
+++ /dev/null
-#!/bin/sh
-#http://www.debian.org/releases/stable/i386/apds03.html.en
-
-#SRC=/root/debootstrap.d
-#SRCHOSTNAME=moo17
-#HOSTNAME=debootstrap-test
-#pick a hostname!
-
-HOSTNAME=moo19
-DIST=etch
-IP=18.181.0.186
-
-PARTITIONS=/root/neboat/testpart
-
-VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda
-
-###
-### Create the device for SIPB-Xen purposes
-###
-sfdisk -H 255 -S 63 $VOLUME <$PARTITIONS
-kpartx -a $VOLUME
-#SWAPDEV=$(sipb-xen-losetup $VOLUME $(( 7903980 * 512 )))
-#IMAGEDEV=$(sipb-xen-losetup $VOLUME $(( 63 * 512 )))
-# mkfs.ext3 -b 1024 $IMAGEDEV $(( 7903917 / 2 ))
-
-#CREATE_IMAGE_CONFIG=./paravm-create.conf
-
-#xen-create-image --image-dev $IMAGEDEV --swap-dev $SWAPDEV --fs ext3 --config $CREATE_IMAGE_CONFIG \
-# --dist $DIST --hostname $HOSTNAME
-
-# xen-create-image --partitions sipb-xen --memory=256MB --ide --arch amd64 --dist etch --hostname moo19 --mirror http://debian.lcs.mit.edu/debian --ip=18.181.0.186 --netmask=255.255.0.0 --gateway=18.181.0.1 --cache
-
-xen-create-image --image-dev ${VOLUME}1 --swap-dev ${VOLUME}2 --fs ext3 --ide --memory 256M --arch amd64 --dist etch --hostname $HOSTNAME --mirror http://debian.lcs.mit.edu/debian --ip=$IP --netmask=255.255.0.0 --gateway=18.181.0.1 --cache
-
-kpartx -d $VOLUME
-#losetup -d $SWAPDEV
-#losetup -d $IMAGEDEV
-
-### This should be the end of the script
-### The material past this point is solely for reference purposes
-
-
-# time debootstrap --arch amd64 etch "$DEST" http://debian.lcs.mit.edu/debian
-
-# cp -a $SRC/fstab $DEST/etc/fstab
-# cp -a $SRC/interfaces $DEST/etc/network/interfaces
-# cp -a $SRC/sources.list $DEST/etc/apt/sources.list
-# cp -a $SRC/update-grub.diff $DEST/root/update-grub.diff
-# echo $HOSTNAME > $DEST/etc/hostname
-# sed s/$SRCHOSTNAME/$HOSTNAME/g $SRC/hosts > $DEST/etc/hosts
-
-# mount -t proc proc $DEST/proc
-
-# LANG=C chroot "$DEST" <<ENDCHROOT
-
-# export TERM=xterm-color
-# mount -a
-
-# cd /media
-# mkdir cdrom0
-# ln -s cdrom0 cdrom
-# cd /
-# ln -s media/cdrom
-
-# echo $'y\n3\nEastern' | tzconfig
-# export DEBIAN_FRONTEND=noninteractive
-
-# echo 'locales locales/locales_to_be_generated multiselect en_US ISO-8859-1' | debconf-set-selections
-
-
-# aptitude update
-# aptitude -y install locales linux-image-xen-amd64
-# aptitude --without-recommends -y install ~pstandard ~prequired ~pimportant
-# #strace tasksel install standard 2>&1 | less
-# aptitude clean
-
-# mkdir /boot/grub
-# aptitude install grub
-# patch /usr/sbin/update-grub </root/update-grub.diff
-# update-grub
-# patch /boot/grub/menu.lst </root/menu.lst.diff
-# patch /etc/inittab </root/inittab.diff
-
-# rm /root/update-grub.diff
-# ENDCHROOT
-
-# ## kill atd and rpc.statd that are using $DEST
-# umount $DEST/proc
-# umount $DEST
-# losetup -d $LODEV
+++ /dev/null
-# /etc/fstab: static file system information.
-#
-# <file system> <mount point> <type> <options> <dump> <pass>
-proc /proc proc defaults 0 0
-/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
-/dev/hda5 none swap sw 0 0
-/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
+++ /dev/null
-127.0.0.1 localhost
-127.0.1.1 moo17.servers.csail.mit.edu moo17
-
-# The following lines are desirable for IPv6 capable hosts
-::1 ip6-localhost ip6-loopback
-fe00::0 ip6-localnet
-ff00::0 ip6-mcastprefix
-ff02::1 ip6-allnodes
-ff02::2 ip6-allrouters
-ff02::3 ip6-allhosts
+++ /dev/null
---- inittab.orig 2008-04-22 05:42:50.000000000 -0400
-+++ inittab 2008-04-22 05:43:04.000000000 -0400
-@@ -60,7 +60,7 @@
-
- # Example how to put a getty on a serial line (for a terminal)
- #
--#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
-+T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
- #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
-
- # Example how to put a getty on a modem line.
+++ /dev/null
-# This file describes the network interfaces available on your system
-# and how to activate them. For more information, see interfaces(5).
-
-# The loopback network interface
-auto lo
-iface lo inet loopback
-
-# The primary network interface
-allow-hotplug eth0
-iface eth0 inet dhcp
+++ /dev/null
---- menu.lst.orig 2008-04-22 05:41:32.000000000 -0400
-+++ menu.lst 2008-04-22 05:42:15.000000000 -0400
-@@ -59,7 +59,7 @@
- ## e.g. kopt=root=/dev/hda1 ro
- ## kopt_2_6_8=root=/dev/hdc1 ro
- ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
--# kopt=root=/dev/hda1 ro
-+# kopt=root=/dev/hda1 ro console=ttyS0,9600,8n1
-
- ## default grub root device
- ## e.g. groot=(hd0,0)
+++ /dev/null
-
-deb http://debian.lcs.mit.edu/debian/ etch main
-deb-src http://debian.lcs.mit.edu/debian/ etch main
-
-deb http://security.debian.org/ etch/updates main
-deb-src http://security.debian.org/ etch/updates main
+++ /dev/null
---- update-grub.orig 2008-04-22 01:13:34.000000000 -0400
-+++ update-grub 2008-04-22 01:13:13.000000000 -0400
-@@ -1036,10 +1036,10 @@
-
- if [ ! "$in_domU" ] && [ "$is_xen" ]; then
- # skip xen kernels
-- continue
-+ :
- elif [ "$in_domU" ] && ! [ "$is_xen" ]; then
- # skip non-xen kernels
-- continue
-+ :
- fi
- kern="/boot/$kern"
- newerKernels=""
+++ /dev/null
-#!/bin/bash
-TARGET="$1"
-HOSTNAME="$2"
-ROOTPW="$3"
-(printf "%s\n" "$ROOTPW"; sleep .2; printf "%s\n" "$ROOTPW") \
- | /usr/sbin/chroot "$TARGET" /usr/bin/passwd root
+++ /dev/null
-,491,L,*
-,31,S
-;
-;
+++ /dev/null
-#!/bin/sh
-#
-# This script is responsible for setting up /etc/fstab upon the
-# new instance.
-#
-# This should be a simple job, but it is complicated by some of the
-# differences between filesystems - some root filesystems will require
-# the installation of new packages, and we have to handle that here.
-#
-# Steve
-# --
-# http://www.steve.org.uk/
-
-prefix=$1
-
-#
-# Source our common functions
-#
-if [ -e /usr/lib/xen-tools/common.sh ]; then
- . /usr/lib/xen-tools/common.sh
-else
- . ./hooks/common.sh
-fi
-
-
-#
-# Log our start
-#
-logMessage Script $0 starting
-
-
-#
-# Make sure we use ide style device names if required
-#
-device=sda
-if [ "${ide}" ]; then
- device=hda
-fi
-
-#
-# Now we have the options we can create the fstab.
-#
-has_xfs=0
-has_reiserfs=0
-cat <<E_O_FSTAB > ${prefix}/etc/fstab
-# /etc/fstab: static file system information.
-#
-# <file system> <mount point> <type> <options> <dump> <pass>
-proc /proc proc defaults 0 0
-E_O_FSTAB
-for part in `seq 1 ${NUMPARTITIONS}`; do
- eval "PARTITION=\"\${PARTITION${part}}\""
- OLDIFS="${IFS}"
- IFS=:
- x=0
- for partdata in ${PARTITION}; do
- eval "partdata${x}=\"${partdata}\""
- x=$(( $x+1 ))
- done
- IFS="${OLDIFS}"
-
- case "${partdata2}" in
- xfs)
- has_xfs=1
- ;;
- reiserfs)
- has_reiserfs=1
- ;;
- esac
-
- # This assumes a particular partition table for our ParaVM's (SIPB)
- if [ "${partdata2}" = "swap" ]; then
- echo "/dev/${device}2 none swap sw 0 0" >> ${prefix}/etc/fstab
- else
- echo "/dev/${device}1 ${partdata3} ${partdata2} ${partdata4} 0 1" >> ${prefix}/etc/fstab
- fi
-done
-
-
-#
-# Finally we can install any required packages for the given root
-# filesystem
-#
-if [ $has_xfs -eq 1 ]; then
- installDebianPackage ${prefix} xfsprogs
-fi
-if [ $has_reiserfs -eq 1 ]; then
- installDebianPackage ${prefix} reiserfsprogs
-fi
-
-
-#
-# Log our finish
-#
-logMessage Script $0 finished
+++ /dev/null
-#!/bin/sh
-#
-# This script sets up the ParaVM to use pygrub
-#
-
-
-prefix=$1
-
-
-#
-# Source our common functions
-#
-if [ -e /usr/lib/xen-tools/common.sh ]; then
- . /usr/lib/xen-tools/common.sh
-else
- . ./hooks/common.sh
-fi
-
-
-#
-# Log our start
-#
-logMessage Script $0 starting
-
-#
-# Install the xen kernel
-#
-installDebianPackage ${prefix} linux-image-xen-amd64
-
-#
-# Install grub package
-#
-installDebianPackage ${prefix} grub
-
-#
-# Make the /boot/grub directory
-#
-mkdir -p ${prefix}/boot/grub
-
-#
-# Patch update-grub to see xen kernels
-#
-patch -l ${prefix}/usr/sbin/update-grub </usr/lib/xen-tools/etch.d/patches/update-grub.patch
-
-#
-# Update Grub
-#
-chroot ${prefix} /usr/sbin/update-grub -y
-
-#
-# Patch Grub menu
-#
-patch -l ${prefix}/boot/grub/menu.lst </usr/lib/xen-tools/etch.d/patches/menu.lst.patch
-# --- menu.lst.orig2008-04-22 05:41:32.000000000 -0400
-# +++ menu.lst2008-04-22 05:42:15.000000000 -0400
-# @@ -59,7 +59,7 @@
-# ## e.g. kopt=root=/dev/hda1 ro
-# ## kopt_2_6_8=root=/dev/hdc1 ro
-# ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
-# -# kopt=root=/dev/hda1 ro
-# +# kopt=root=/dev/hda1 ro console=ttyS0,9600,8n1
-
-# ## default grub root device
-# ## e.g. groot=(hd0,0)
-# EOF
-
-#
-# Patch inittab
-#
-patch -l ${prefix}/etc/inittab </usr/lib/xen-tools/etch.d/patches/inittab.patch
-# --- inittab.orig2008-04-22 05:42:50.000000000 -0400
-# +++ inittab2008-04-22 05:43:04.000000000 -0400
-# @@ -60,7 +60,7 @@
-
-# # Example how to put a getty on a serial line (for a terminal)
-# #
-# -#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
-# +T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
-# #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
-
-# # Example how to put a getty on a modem line.
-# EOF
-
-#
-# Log our finish
-#
-logMessage Script $0 finished
-
+++ /dev/null
---- temp/etc/inittab 2008-05-04 02:48:09.000000000 -0400
-+++ inittab 2008-05-04 02:52:09.000000000 -0400
-@@ -60,7 +60,7 @@
-
- # Example how to put a getty on a serial line (for a terminal)
- #
--#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
-+T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
- #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
-
- # Example how to put a getty on a modem line.
+++ /dev/null
---- temp/boot/grub/menu.lst 2008-05-04 03:17:31.000000000 -0400
-+++ menu.lst 2008-05-04 03:19:09.000000000 -0400
-@@ -59,7 +59,7 @@
- ## e.g. kopt=root=/dev/hda1 ro
- ## kopt_2_6_8=root=/dev/hdc1 ro
- ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
--# kopt=root=/dev/hda1 ro
-+# kopt=root=/dev/hda1 ro console=ttyS0,9600,8n1
-
- ## default grub root device
- ## e.g. groot=(hd0,0)
+++ /dev/null
---- update-grub.orig 2008-05-03 23:30:37.000000000 -0400
-+++ update-grub 2008-05-03 23:30:55.000000000 -0400
-@@ -911,13 +911,6 @@
- is_xen=
- fi
-
-- if [ ! "$in_domU" ] && [ "$is_xen" ]; then
-- # skip xen kernels
-- continue
-- elif [ "$in_domU" ] && ! [ "$is_xen" ]; then
-- # skip non-xen kernels
-- continue
-- fi
- kern="/boot/$kern"
- newerKernels=""
- for i in $sortedKernels ; do