Last change
on this file since 1482 was
763,
checked in by ecprice, 16 years ago
|
Make xen-tools scripts executable
|
-
Property svn:executable set to
*
|
File size:
1006 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 | # To avoid UDP checksum problems. |
---|
24 | |
---|
25 | installDebianPackage ${prefix} ethtool |
---|
26 | |
---|
27 | # |
---|
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 |
---|
32 | |
---|
33 | installDebianPackage ${prefix} grub |
---|
34 | |
---|
35 | # |
---|
36 | # Make the /boot/grub directory |
---|
37 | # |
---|
38 | mkdir -p ${prefix}/boot/grub |
---|
39 | |
---|
40 | # |
---|
41 | # Create stock menu.lst |
---|
42 | # |
---|
43 | chroot ${prefix} /usr/sbin/update-grub -y |
---|
44 | |
---|
45 | # |
---|
46 | # Patches to add xen kernels, use serial console, etc. |
---|
47 | # |
---|
48 | for patch in $dir/patches/*; do |
---|
49 | patch -l -d ${prefix} -p1 < $patch |
---|
50 | done |
---|
51 | |
---|
52 | # |
---|
53 | # Regenerate automagic kernels list |
---|
54 | # |
---|
55 | chroot ${prefix} /usr/sbin/update-grub -y |
---|
56 | |
---|
57 | # |
---|
58 | # Log our finish |
---|
59 | # |
---|
60 | logMessage Script $0 finished |
---|
61 | |
---|
Note: See
TracBrowser
for help on using the repository browser.