* Merge from Ubuntu:

- Don't call update-grub in the zz-update-grub kernel hook if
    /boot/grub/grub.cfg doesn't exist.
This commit is contained in:
Colin Watson 2013-03-13 10:05:47 +00:00
parent 3facdd006a
commit 4fafc53b27
2 changed files with 11 additions and 1 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
grub2 (2.00-14) UNRELEASED; urgency=low
* Merge from Ubuntu:
- Don't call update-grub in the zz-update-grub kernel hook if
/boot/grub/grub.cfg doesn't exist.
-- Colin Watson <cjwatson@debian.org> Wed, 13 Mar 2013 10:05:17 +0000
grub2 (2.00-13) experimental; urgency=low
* Backport from upstream:

View File

@ -17,7 +17,9 @@ case $0:$mode in
# Also run if we have no DEB_MAINT_PARAMS, in order to work with old
# kernel packages.
*/postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove)
if [ -e /boot/grub/grub.cfg ]; then
exec update-grub
fi
;;
esac