From f065541445ca887ecfca64b9eeec8db6f19b83bc Mon Sep 17 00:00:00 2001 From: Brandon Bradley Date: Wed, 17 Feb 2016 15:55:14 -0600 Subject: [PATCH] fix update-grub chroot silent failure --- hooks/common/82-install-grub-legacy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hooks/common/82-install-grub-legacy b/hooks/common/82-install-grub-legacy index 5f66da2..26b75d7 100755 --- a/hooks/common/82-install-grub-legacy +++ b/hooks/common/82-install-grub-legacy @@ -40,7 +40,11 @@ fi if [ ! -e ${prefix}/boot/grub/default ]; then echo default > ${prefix}/boot/grub/default fi +mount -o bind /proc ${prefix}/proc +mount -o bind /dev ${prefix}/dev chroot ${prefix} /usr/sbin/update-grub +umount ${prefix}/proc +umount ${prefix}/dev else logMessage "pygrub not set, skipping grub-legacy installation"