source: trunk/packages/sipb-xen-guest-installer/domU/usr/lib/xen-tools/debian.d/97-setup-grub @ 738

Last change on this file since 738 was 641, checked in by ecprice, 17 years ago

Getting towards the autoinstaller in domU.

Works with etch, almost works with Hardy but has network trouble.

File size: 1006 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# To avoid UDP checksum problems.
24
25installDebianPackage ${prefix} ethtool
26
27#
28# Install the xen kernel.  linux-image-xen is in ubuntu,
29# linux-image-xen-amd64 in debian.
30installDebianPackage ${prefix} linux-image-xen
31installDebianPackage ${prefix} linux-image-xen-amd64
32
33installDebianPackage ${prefix} grub
34
35#
36# Make the /boot/grub directory
37#
38mkdir -p ${prefix}/boot/grub
39
40#
41# Create stock menu.lst
42#
43chroot ${prefix} /usr/sbin/update-grub -y
44
45#
46# Patches to add xen kernels, use serial console, etc.
47#
48for patch in $dir/patches/*; do
49    patch -l -d ${prefix} -p1 < $patch
50done
51
52#
53# Regenerate automagic kernels list
54#
55chroot ${prefix} /usr/sbin/update-grub -y
56
57#
58# Log our finish
59#
60logMessage Script $0 finished
61
Note: See TracBrowser for help on using the repository browser.