diff -Nru mdadm-3.2.5/debian/changelog mdadm-3.2.5/debian/changelog --- mdadm-3.2.5/debian/changelog 2015-06-16 12:06:29.000000000 +0200 +++ mdadm-3.2.5/debian/changelog 2016-02-15 19:15:09.000000000 +0100 @@ -1,3 +1,11 @@ +mdadm (3.2.5-5ubuntu4.3) trusty; urgency=low + + * debian/rules: Modify dh_installinit for mdadm-waitidle to get it sorted + correctly for running after umountroot and not before even umountfs. + (LP: #1551790) + + -- Stefan Bader Mon, 15 Feb 2016 16:22:21 +0100 + mdadm (3.2.5-5ubuntu4.2) trusty; urgency=medium * debian/dmraid2mdadm.cfg: Only append to GRUB_CMDLINE_LINUX_DEFAULT one diff -Nru mdadm-3.2.5/debian/mdadm.postinst mdadm-3.2.5/debian/mdadm.postinst --- mdadm-3.2.5/debian/mdadm.postinst 2014-04-30 21:33:40.000000000 +0200 +++ mdadm-3.2.5/debian/mdadm.postinst 2016-02-16 09:18:24.000000000 +0100 @@ -143,6 +143,11 @@ # Remove old init script update-rc.d mdadm-raid remove + # (Re-)move old mdadm-waitidle links + if [ -L /etc/rc0.d/K98mdadm-waitidle ]; then + update-rc.d -f mdadm-waitidle remove + fi + update-initramfs -u if type update-grub2 1>/dev/null 2>/dev/null; then update-grub || true diff -Nru mdadm-3.2.5/debian/rules mdadm-3.2.5/debian/rules --- mdadm-3.2.5/debian/rules 2014-02-18 09:50:03.000000000 +0100 +++ mdadm-3.2.5/debian/rules 2016-02-15 16:22:15.000000000 +0100 @@ -93,7 +93,11 @@ dh_installdocs dh_installexamples debian/mdadd.sh dh_installinit -- defaults 25 - dh_installinit --init-script=mdadm-waitidle --no-start -- stop 98 0 6 . + # Though it is the stop action that should be called, the wait idle + # script needs to be installed as "start 70 0 6" to cause it being + # sorted _after_ umountfs and umountroot have been called (as the + # LSB header does correctly declare). (LP: #xxx) + dh_installinit --init-script=mdadm-waitidle --no-start -- start 70 0 6 . dh_installman dh_installcron dh_installchangelogs ChangeLog