Last change
on this file since 1673 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 | |
---|
6 | prefix=$1 |
---|
7 | |
---|
8 | # |
---|
9 | # Source our common functions |
---|
10 | # |
---|
11 | if [ -e /usr/lib/xen-tools/common.sh ]; then |
---|
12 | . /usr/lib/xen-tools/common.sh |
---|
13 | else |
---|
14 | . ./hooks/common.sh |
---|
15 | fi |
---|
16 | |
---|
17 | echo SCRIPT = $0 |
---|
18 | dir=`dirname "$0"` |
---|
19 | |
---|
20 | |
---|
21 | logMessage Script $0 starting |
---|
22 | |
---|
23 | # |
---|
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 |
---|
28 | |
---|
29 | installDebianPackage ${prefix} grub |
---|
30 | |
---|
31 | # |
---|
32 | # Make the /boot/grub directory |
---|
33 | # |
---|
34 | mkdir -p ${prefix}/boot/grub |
---|
35 | |
---|
36 | # |
---|
37 | # Create stock menu.lst |
---|
38 | # |
---|
39 | chroot ${prefix} /usr/sbin/update-grub -y |
---|
40 | |
---|
41 | # |
---|
42 | # Patches to add xen kernels, use serial console, etc. |
---|
43 | # |
---|
44 | for patch in $dir/patches/*; do |
---|
45 | patch -l -d ${prefix} -p1 < $patch |
---|
46 | done |
---|
47 | |
---|
48 | # |
---|
49 | # Regenerate automagic kernels list |
---|
50 | # |
---|
51 | chroot ${prefix} /usr/sbin/update-grub -y |
---|
52 | |
---|
53 | # |
---|
54 | # Log our finish |
---|
55 | # |
---|
56 | logMessage Script $0 finished |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.