Maintainer scripts: test for presence of grub.cfg, don't execute update-grub otherwise
authorMichael Prokop <mika@grml.org>
Mon, 20 Feb 2012 13:52:24 +0000 (14:52 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 20 Feb 2012 13:52:24 +0000 (14:52 +0100)
commit395abc5bda9903f9bbe0ecd1df63a59bdb6b0071
tree409151f71be5f8f21617a8751f6cfb9255fb51ae
parent403c67a828fbf89529feda9fdb897f51295b3656
Maintainer scripts: test for presence of grub.cfg, don't execute update-grub otherwise

Let's do the same as memtest86+-4.20 does: test for presence of
/boot/grub/grub.cfg, if the file exists (and running some other
checks) we can execute update-grub, otherwise don't care....

This is supposed to address the annoying:

| /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

issue which is showing up in minimal chroots on package removal.

Closes: #660588
debian/postinst
debian/postrm