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 in debian.
26 installDebianPackage ${prefix} linux-image-xen
27 installDebianPackage ${prefix} linux-image-xen-amd64
29 installDebianPackage ${prefix} grub
32 # Make the /boot/grub directory
34 mkdir -p ${prefix}/boot/grub
37 # Create stock menu.lst
39 chroot ${prefix} /usr/sbin/update-grub -y
42 # Patches to add xen kernels, use serial console, etc.
44 for patch in $dir/patches/*; do
45 patch -l -d ${prefix} -p1 < $patch
49 # Regenerate automagic kernels list
51 chroot ${prefix} /usr/sbin/update-grub -y
56 logMessage Script $0 finished