diff -u libnih-1.0.3/debian/changelog libnih-1.0.3/debian/changelog --- libnih-1.0.3/debian/changelog +++ libnih-1.0.3/debian/changelog @@ -1,3 +1,11 @@ +libnih (1.0.3-4ubuntu9.1) precise-proposed; urgency=low + + * Addition of debian/libnih-dbus1.postinst and + debian/libnih1.postinst to force Upstart re-exec on shutdown + to avoid unmounting disks uncleanly (LP: #740390, LP: #1062202). + + -- James Hunt Fri, 05 Oct 2012 14:14:10 +0100 + libnih (1.0.3-4ubuntu9) precise; urgency=low * Mark the nih-dbus-tool package Multi-Arch: foreign so it can be used as only in patch2: unchanged: --- libnih-1.0.3.orig/debian/libnih-dbus1.postinst +++ libnih-1.0.3/debian/libnih-dbus1.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + # Before we shutdown or reboot, upstart needs to re-exec + # so that it can safely unmount the root filesystem (LP: #740390) + touch /var/run/init.upgraded || : +fi + +#DEBHELPER# only in patch2: unchanged: --- libnih-1.0.3.orig/debian/libnih1.postinst +++ libnih-1.0.3/debian/libnih1.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + # Before we shutdown or reboot, upstart needs to re-exec + # so that it can safely unmount the root filesystem (LP: #740390) + touch /var/run/init.upgraded || : +fi + +#DEBHELPER#