From d7f219f16015212cdf4883546d8e77cfb8554713 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 24 Jan 2013 22:58:28 +0100 Subject: [PATCH] Create /boot/grub/default if non-existent Seems to be needed at least for Squeeze. --- hooks/common/82-install-grub-legacy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hooks/common/82-install-grub-legacy b/hooks/common/82-install-grub-legacy index 6218bb6..41c580c 100755 --- a/hooks/common/82-install-grub-legacy +++ b/hooks/common/82-install-grub-legacy @@ -37,6 +37,9 @@ else installDebianPackage ${prefix} grub fi +if [ ! -e ${prefix}/boot/grub/default ]; then + echo default > ${prefix}/boot/grub/default +fi chroot ${prefix} /usr/sbin/update-grub else