blob: 6089392cd6efc89b24e822f0a7d1a66268ba7d3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
post_upgrade() {
# We used to package /boot/grub/grub.cfg, but there is no reason to.
# Remove the file from package, but move real file back in place.
if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
fi
}
post_install() {
cat << 'EOM'
Generate your dom0 bootloader configuration with:
grub-mkconfig -o /boot/grub/grub.cfg
Generate a simple pvgrub2 image with:
cat > grub.cfg <<EOF
search -s root -f /boot/grub/grub.cfg
configfile /boot/grub/grub.cfg
EOF
grub-mkstandalone -O x86_64-xen -o /usr/lib/xen/boot/pvgrub2-x86_64-xen grub.cfg
and set the generated image as the value for the kernel in the domU config
file. For i386-xen and i386-xen_pvh images, substitute the desired platform
for 'x86_64' in the command above. See https://wiki.xen.org/wiki/PvGrub2 for
more possibilities.
EOM
}
|