1
0
mirror of synced 2026-02-07 00:07:12 +00:00

Install grub-legacy in all pygrub-based DomUs

This commit is contained in:
Axel Beckert
2013-01-22 02:30:15 +01:00
parent a2aa1b8a02
commit 9182aaccb7
6 changed files with 53 additions and 0 deletions

2
debian/changelog vendored
View File

@@ -28,6 +28,8 @@ xen-tools (4.4~dev-1) UNRELEASED; urgency=low
initrds also suitable for DomU usage. Trigger update-initramfs.
- By default install linux-image-virtual instead of linux-image-server
on Ubuntu Intrepid and newer (Hopefully closes: #640099, LP #839492)
- Installs a legacy grub in all pygrub based DomUs to be able to
update the menu.list automatically.
* Add debian/gbp.conf to be able to to build xen-tools with
git-buildpackage.
* Clean up debian/rules:

View File

@@ -0,0 +1,47 @@
#!/bin/sh
#
# Ensure that either modules-init-tools or kmod is setup.
#
# This is most likely required if you're using a custom kernel
# for your Xen system. But even if it isn't required it can't
# really do anything bad; just waste a bit of space.
prefix=$1
#
# Source our common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
. /usr/lib/xen-tools/common.sh
else
. ./hooks/common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
if [ ${pygrub} ]; then
#
# Install the grub 0.9x package ("grub-legacy" on Debian, "grub" on Ubuntu)
#
if chroot ${prefix} /usr/bin/apt-cache show grub-legacy >/dev/null 2>/dev/null; then
installDebianPackage ${prefix} grub-legacy
else
installDebianPackage ${prefix} grub
fi
else
logMessage "pygrub not set, skipping grub-legacy installation"
fi # if pygrub
#
# Log our finish
#
logMessage Script $0 finished

View File

@@ -0,0 +1 @@
../common/82-install-grub-legacy

View File

@@ -0,0 +1 @@
../common/82-install-grub-legacy

View File

@@ -0,0 +1 @@
../common/82-install-grub-legacy

View File

@@ -0,0 +1 @@
../common/82-install-grub-legacy