From: Axel Beckert Date: Thu, 24 Jan 2013 19:02:22 +0000 (+0100) Subject: Better check for grub-legacy availability which ignores virtual packages X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=025e20a1f112cc0427af85e1ef4de2fbd34285d5;p=people%2Fdariof%2Fxen-tools.git Better check for grub-legacy availability which ignores virtual packages --- diff --git a/hooks/common/82-install-grub-legacy b/hooks/common/82-install-grub-legacy index 8beb5ab..e78d1d9 100755 --- a/hooks/common/82-install-grub-legacy +++ b/hooks/common/82-install-grub-legacy @@ -31,7 +31,7 @@ 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 +if chroot ${prefix} /usr/bin/apt-cache show grub-legacy 2>/dev/null | egrep -qi 'GRand Unified Bootloader.*Legacy'; then installDebianPackage ${prefix} grub-legacy else installDebianPackage ${prefix} grub