From 025e20a1f112cc0427af85e1ef4de2fbd34285d5 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 24 Jan 2013 20:02:22 +0100 Subject: [PATCH] Better check for grub-legacy availability which ignores virtual packages --- hooks/common/82-install-grub-legacy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5