1
0
mirror of synced 2026-01-13 15:17:30 +00:00

Better check for grub-legacy availability which ignores virtual packages

This commit is contained in:
Axel Beckert 2013-01-24 20:02:22 +01:00
parent 9330b79d51
commit 025e20a1f1

View File

@ -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