projects
/
grml-rescueboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
post-maintainer scripts: make sure update-grub is present before executing it.
[grml-rescueboot.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
99343dc
..
eb3a28d
100644
(file)
--- 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
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."
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."