From 4814dbe5abdf5f4ed0421b94648c13a4d47ff159 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Sun, 27 Jul 2008 23:37:32 -0400 Subject: [PATCH] Throw out old old installer. svn path=/trunk/packages/sipb-xen-autoinstaller/; revision=743 --- partial/copying-installer.sh | 15 ---- partial/debootstrap-commands | 90 ------------------- partial/debootstrap.d/fstab | 7 -- partial/debootstrap.d/hosts | 10 --- partial/debootstrap.d/inittab.diff | 11 --- partial/debootstrap.d/interfaces | 10 --- partial/debootstrap.d/menu.lst.diff | 11 --- partial/debootstrap.d/sources.list | 6 -- partial/debootstrap.d/update-grub.diff | 15 ---- partial/post-copy | 6 -- partial/testpart | 4 - partial/xen-create-image-mods/90-make-fstab | 95 -------------------- partial/xen-create-image-mods/97-setup-grub | 88 ------------------ .../xen-create-image-mods/patches/inittab.patch | 11 --- .../xen-create-image-mods/patches/menu.lst.patch | 11 --- .../patches/update-grub.patch | 16 ---- 16 files changed, 406 deletions(-) delete mode 100644 partial/copying-installer.sh delete mode 100644 partial/debootstrap-commands delete mode 100644 partial/debootstrap.d/fstab delete mode 100644 partial/debootstrap.d/hosts delete mode 100644 partial/debootstrap.d/inittab.diff delete mode 100644 partial/debootstrap.d/interfaces delete mode 100644 partial/debootstrap.d/menu.lst.diff delete mode 100644 partial/debootstrap.d/sources.list delete mode 100644 partial/debootstrap.d/update-grub.diff delete mode 100644 partial/post-copy delete mode 100644 partial/testpart delete mode 100755 partial/xen-create-image-mods/90-make-fstab delete mode 100755 partial/xen-create-image-mods/97-setup-grub delete mode 100755 partial/xen-create-image-mods/patches/inittab.patch delete mode 100755 partial/xen-create-image-mods/patches/menu.lst.patch delete mode 100755 partial/xen-create-image-mods/patches/update-grub.patch diff --git a/partial/copying-installer.sh b/partial/copying-installer.sh deleted file mode 100644 index 79678a2..0000000 --- a/partial/copying-installer.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 $DEST/etc/hostname -# sed s/$SRCHOSTNAME/$HOSTNAME/g $SRC/hosts > $DEST/etc/hosts - -# mount -t proc proc $DEST/proc - -# LANG=C chroot "$DEST" <&1 | less -# aptitude clean - -# mkdir /boot/grub -# aptitude install grub -# patch /usr/sbin/update-grub -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 diff --git a/partial/debootstrap.d/hosts b/partial/debootstrap.d/hosts deleted file mode 100644 index da2afa1..0000000 --- a/partial/debootstrap.d/hosts +++ /dev/null @@ -1,10 +0,0 @@ -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 diff --git a/partial/debootstrap.d/inittab.diff b/partial/debootstrap.d/inittab.diff deleted file mode 100644 index 0745ff9..0000000 --- a/partial/debootstrap.d/inittab.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- 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. diff --git a/partial/debootstrap.d/interfaces b/partial/debootstrap.d/interfaces deleted file mode 100644 index 04ee0fe..0000000 --- a/partial/debootstrap.d/interfaces +++ /dev/null @@ -1,10 +0,0 @@ -# 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 diff --git a/partial/debootstrap.d/menu.lst.diff b/partial/debootstrap.d/menu.lst.diff deleted file mode 100644 index da16aa0..0000000 --- a/partial/debootstrap.d/menu.lst.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- 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) diff --git a/partial/debootstrap.d/sources.list b/partial/debootstrap.d/sources.list deleted file mode 100644 index e2b2d67..0000000 --- a/partial/debootstrap.d/sources.list +++ /dev/null @@ -1,6 +0,0 @@ - -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 diff --git a/partial/debootstrap.d/update-grub.diff b/partial/debootstrap.d/update-grub.diff deleted file mode 100644 index c420c89..0000000 --- a/partial/debootstrap.d/update-grub.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- 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="" diff --git a/partial/post-copy b/partial/post-copy deleted file mode 100644 index 46552ad..0000000 --- a/partial/post-copy +++ /dev/null @@ -1,6 +0,0 @@ -#!/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 diff --git a/partial/testpart b/partial/testpart deleted file mode 100644 index 78b6c46..0000000 --- a/partial/testpart +++ /dev/null @@ -1,4 +0,0 @@ -,491,L,* -,31,S -; -; diff --git a/partial/xen-create-image-mods/90-make-fstab b/partial/xen-create-image-mods/90-make-fstab deleted file mode 100755 index fca0527..0000000 --- a/partial/xen-create-image-mods/90-make-fstab +++ /dev/null @@ -1,95 +0,0 @@ -#!/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 < ${prefix}/etc/fstab -# /etc/fstab: static file system information. -# -# -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 diff --git a/partial/xen-create-image-mods/97-setup-grub b/partial/xen-create-image-mods/97-setup-grub deleted file mode 100755 index f01ebec..0000000 --- a/partial/xen-create-image-mods/97-setup-grub +++ /dev/null @@ -1,88 +0,0 @@ -#!/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