[Pkg-sysvinit-devel] Final patch for /run transition

Roger Leigh rleigh at codelibre.net
Sat Jul 9 10:06:01 UTC 2011


Hi,

Is the following OK to upload?  This is to ensure that
/run/sendsigs.omit.d exists so that other packages can rely on
its presence to safely transition to using it.

Thanks,
Roger


commit 8001684140b17816242175b9d68604909363f696
Author: Roger Leigh <rleigh at debian.org>
Date:   Sat Jul 9 11:00:10 2011 +0100

    Add /run/sendsigs.omit.d in initscripts postinst

diff --git a/debian/changelog b/debian/changelog
index f0d7ef4..5df53ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sysvinit (2.88dsf-13.11) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * initscripts provides /run/sendsigs.omit.d as soon as /run is
+    available.
+
+ -- Roger Leigh <rleigh at debian.org>  Sat, 09 Jul 2011 10:47:49 +0100
+
 sysvinit (2.88dsf-13.10) unstable; urgency=low
 
   * Non-maintainer upload.
diff --git a/debian/initscripts.postinst b/debian/initscripts.postinst
index 544c124..1d956bf 100755
--- a/debian/initscripts.postinst
+++ b/debian/initscripts.postinst
@@ -247,6 +247,9 @@ else
 	echo "Please reboot to complete migration to tmpfs-based /run" > /run/.run-transition
 fi
 
+# Ensure presence of /run/sendsigs.omit.d
+[ -d /run/sendsigs.omit.d ] || { mkdir --mode=755 /run/sendsigs.omit.d ; chown root:root /run/sendsigs.omit.d || [ "$FAKECHROOT" = true ]; }
+
 tmpfs_fstab_migrate
 
 #

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110709/24de3149/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list