summaryrefslogtreecommitdiff
path: root/debian/mdadm.postinst
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2016-07-28 15:51:35 +0100
committerDimitri John Ledkov <xnox@ubuntu.com>2016-07-28 16:52:46 +0100
commitca114f3c76374493f0fd64f8ea0a9b96ae9b1dc5 (patch)
treebc9868009a6ce0bafa9a4737938e1684e2d15e40 /debian/mdadm.postinst
parent22821d8e740c4012566c4bc672acdb8f545cf89f (diff)
Bring in changes from Ubuntu, to bring packages in sync.debian/3.4-4
* Bring in changes from Ubuntu, to make the two packages in sync: - Drop README.Debian, quite out-of-date w.r.t. current packaging. - debian/control - on ubuntu, downgrade default-mta from Recommends to Suggests. - update-grub in postinst, if available (note does not update grub1). - drop stderr warnings in postrm. - drop presubj, out of date, and all types of bugs are welcomed. - on ubuntu, install apport package hook. - on ubuntu, install incremental assembly udev rules into udeb.
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