source: trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/97-setup-grub @ 1641

Last change on this file since 1641 was 1637, checked in by broder, 16 years ago

Add a hook to invirt-autoinstaller to turn off checksumming in the guest

  • Property svn:executable set to *
File size: 931 bytes
Line 
1#!/bin/sh
2#
3#  This script sets up the ParaVM to use pygrub
4#
5
6prefix=$1
7
8#
9#  Source our common functions
10#
11if [ -e /usr/lib/xen-tools/common.sh ]; then
12    . /usr/lib/xen-tools/common.sh
13else
14    . ./hooks/common.sh
15fi
16
17echo SCRIPT = $0
18dir=`dirname "$0"`
19
20
21logMessage Script $0 starting
22
23#
24# Install the xen kernel.  linux-image-xen is in ubuntu,
25# linux-image-xen-amd64 in debian.
26installDebianPackage ${prefix} linux-image-xen
27installDebianPackage ${prefix} linux-image-xen-amd64
28
29installDebianPackage ${prefix} grub
30
31#
32# Make the /boot/grub directory
33#
34mkdir -p ${prefix}/boot/grub
35
36#
37# Create stock menu.lst
38#
39chroot ${prefix} /usr/sbin/update-grub -y
40
41#
42# Patches to add xen kernels, use serial console, etc.
43#
44for patch in $dir/patches/*; do
45    patch -l -d ${prefix} -p1 < $patch
46done
47
48#
49# Regenerate automagic kernels list
50#
51chroot ${prefix} /usr/sbin/update-grub -y
52
53#
54# Log our finish
55#
56logMessage Script $0 finished
57
Note: See TracBrowser for help on using the repository browser.