Bastian Blank
2006-Oct-14 12:51 UTC
[Pkg-xen-changes] r354 - trunk/xen-3.0/debian/templates
Author: waldi Date: Sat Oct 14 12:51:30 2006 New Revision: 354 Modified: trunk/xen-3.0/debian/templates/xen-hypervisor.postinst.in trunk/xen-3.0/debian/templates/xen-hypervisor.postrm.in Log: debian/templates/xen-hypervisor.postinst.in, debian/templates/xen-hypervisor.postrm.in: Ignore errors from update-grub. Modified: trunk/xen-3.0/debian/templates/xen-hypervisor.postinst.in =============================================================================--- trunk/xen-3.0/debian/templates/xen-hypervisor.postinst.in (original) +++ trunk/xen-3.0/debian/templates/xen-hypervisor.postinst.in Sat Oct 14 12:51:30 2006 @@ -4,7 +4,9 @@ case "$1" in configure) - command -v update-grub > /dev/null && update-grub + if command -v update-grub > /dev/null && [ -d /boot/grub ]; then + update-grub || : + fi ;; abort-upgrade|abort-remove|abort-deconfigure) Modified: trunk/xen-3.0/debian/templates/xen-hypervisor.postrm.in =============================================================================--- trunk/xen-3.0/debian/templates/xen-hypervisor.postrm.in (original) +++ trunk/xen-3.0/debian/templates/xen-hypervisor.postrm.in Sat Oct 14 12:51:30 2006 @@ -4,7 +4,9 @@ case "$1" in remove) - command -v update-grub > /dev/null && update-grub + if command -v update-grub > /dev/null && [ -d /boot/grub ]; then + update-grub || : + fi ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)