3 # This script sets up the ParaVM to use pygrub
11 # Source our common functions
13 if [ -e /usr/lib/xen-tools/common.sh ]; then
14 . /usr/lib/xen-tools/common.sh
23 logMessage Script $0 starting
26 # Install the xen kernel
28 installDebianPackage ${prefix} linux-image-xen-amd64
31 # Install grub package
33 installDebianPackage ${prefix} grub
36 # Make the /boot/grub directory
38 mkdir -p ${prefix}/boot/grub
41 # Patch update-grub to see xen kernels
43 patch -l ${prefix}/usr/sbin/update-grub </usr/lib/xen-tools/etch.d/patches/update-grub.patch
48 chroot ${prefix} /usr/sbin/update-grub -y
53 patch -l ${prefix}/boot/grub/menu.lst </usr/lib/xen-tools/etch.d/patches/menu.lst.patch
54 # --- menu.lst.orig2008-04-22 05:41:32.000000000 -0400
55 # +++ menu.lst2008-04-22 05:42:15.000000000 -0400
57 # ## e.g. kopt=root=/dev/hda1 ro
58 # ## kopt_2_6_8=root=/dev/hdc1 ro
59 # ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
60 # -# kopt=root=/dev/hda1 ro
61 # +# kopt=root=/dev/hda1 ro console=ttyS0,9600,8n1
63 # ## default grub root device
64 # ## e.g. groot=(hd0,0)
70 patch -l ${prefix}/etc/inittab </usr/lib/xen-tools/etch.d/patches/inittab.patch
71 # --- inittab.orig2008-04-22 05:42:50.000000000 -0400
72 # +++ inittab2008-04-22 05:43:04.000000000 -0400
75 # # Example how to put a getty on a serial line (for a terminal)
77 # -#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
78 # +T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
79 # #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
81 # # Example how to put a getty on a modem line.
87 logMessage Script $0 finished