X-Git-Url: https://git.grml.org/?p=grml-rescueboot.git;a=blobdiff_plain;f=debian%2Fpostrm;h=dc1ef1d256fa5c07ef63f6028147686b40f158cf;hp=6291c9000e40654f4322d646609609d715c5c710;hb=395abc5bda9903f9bbe0ecd1df63a59bdb6b0071;hpb=e20b2c3b46c11c36a348e150c034ca10888e78ee;ds=sidebyside diff --git a/debian/postrm b/debian/postrm index 6291c90..dc1ef1d 100644 --- a/debian/postrm +++ b/debian/postrm @@ -5,8 +5,10 @@ set -e case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - echo "Updating grub.cfg to make sure there are no non-existing entries being left." - update-grub + if test -e /boot/grub/grub.cfg && which update-grub >/dev/null 2>&1; then + echo "Updating grub.cfg to make sure there are no non-existing entries being left." + update-grub + fi ;; *)