#!/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