3 # This script sets up the ParaVM to use pygrub
9 # Source our common functions
11 if [ -e /usr/lib/xen-tools/common.sh ]; then
12 . /usr/lib/xen-tools/common.sh
21 logMessage Script $0 starting
24 # Install the xen kernel. linux-image-xen is in ubuntu,
25 # linux-image-xen-{amd64,686} in debian.
27 installDebianPackage ${prefix} linux-image-xen-amd64
28 installDebianPackage ${prefix} linux-image-xen-686
29 installDebianPackage ${prefix} linux-image-xen
31 installDebianPackage ${prefix} grub
34 # Make the /boot/grub directory
36 mkdir -p ${prefix}/boot/grub
39 # Create stock menu.lst
41 chroot ${prefix} /usr/sbin/update-grub -y
44 # Patches to add xen kernels, use serial console, etc.
46 for patch in $dir/patches/*; do
47 patch -l -d ${prefix} -p1 < $patch
51 # Regenerate automagic kernels list
53 chroot ${prefix} /usr/sbin/update-grub -y
58 logMessage Script $0 finished