summaryrefslogtreecommitdiff
path: root/debian/mdadm.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r--debian/mdadm.postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index fbe1f362..35ae2d94 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -93,6 +93,10 @@ _eof
command -v update-initramfs >/dev/null 2>&1 && update-initramfs -u
+ if command -v update-grub2 >/dev/null 2>&1; then
+ update-grub || true
+ fi
+
if dpkg --compare-versions "$2" le 3.3.2-3; then
rm -f /var/lib/mdadm/CONF-UNCHECKED /var/lib/mdadm/mdadm.conf-generated
if [ -d /var/lib/mdadm ]; then