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
23 # To avoid UDP checksum problems.
25 installDebianPackage ${prefix} ethtool
28 # Install the xen kernel. linux-image-xen is in ubuntu,
29 # linux-image-xen-amd64 in debian.
30 installDebianPackage ${prefix} linux-image-xen
31 installDebianPackage ${prefix} linux-image-xen-amd64
33 installDebianPackage ${prefix} grub
36 # Make the /boot/grub directory
38 mkdir -p ${prefix}/boot/grub
41 # Create stock menu.lst
43 chroot ${prefix} /usr/sbin/update-grub -y
46 # Patches to add xen kernels, use serial console, etc.
48 for patch in $dir/patches/*; do
49 patch -l -d ${prefix} -p1 < $patch
53 # Regenerate automagic kernels list
55 chroot ${prefix} /usr/sbin/update-grub -y
60 logMessage Script $0 finished