X-Git-Url: http://git.grml.org/?p=grml-rescueboot.git;a=blobdiff_plain;f=debian%2Fpostinst;h=eb3a28dcf5d31448ce6b6e3075aaca63f6d332d4;hp=99343dc116074a90dcef267c843e35492ebd0eb7;hb=199476a3ee4fb6e6e4e71f719c9f29f5fa93cf5d;hpb=e20b2c3b46c11c36a348e150c034ca10888e78ee diff --git a/debian/postinst b/debian/postinst index 99343dc..eb3a28d 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,8 +6,12 @@ set -e case "$1" in configure) if ls /boot/grml/*iso >/dev/null 2>&1 ; then - echo "ISOs found inside /boot/grml, invoking update-grub:" - update-grub + if which update-grub >/dev/null 2>&1; then + echo "ISOs found inside /boot/grml, invoking update-grub:" + update-grub + else + echo "WARN: ISOs found inside /boot/grml but update-grub not present (huh?)" + fi else echo "No *.iso files found inside /boot/grml/. Please create /boot/grml and" echo "place Grml ISO(s) there. Finally invoke update-grub and enjoy your rescue system."