From: Colin Watson
Date: Wed, 25 Feb 2009 22:19:00 +0000 (+0000)
Subject: /var/run and /var/lock may be volatile
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1331fc6f50d79a3582ac03cb155d8c0d96688d20;p=debian%2Fdebian-policy.git
/var/run and /var/lock may be volatile
/var/run and /var/lock may be mounted as temporary filesystems, and init
scripts must therefore create any necessary subdirectories dynamically.
---
diff --git a/debian/changelog b/debian/changelog
index 197a6f4..9e30dfe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -45,6 +45,11 @@ debian-policy (3.8.1.0) UNRELEASED; urgency=low
Seconded: Russ Allbery
Seconded: Henrique de Moraes Holschuh
Closes: #513955
+ * Policy: /var/run and /var/lock may be volatile
+ Wording: Colin Watson
+ Seconded: Russ Allbery
+ Seconded: Bill Allombert
+ Closes: #514326
* Improve the documentation of maintainer script actions for diversions
in the informative appendix to allow for addition of a new diversion
on upgrade and handle error cases correctly. Thanks to Olivier Berger
diff --git a/policy.sgml b/policy.sgml
index 3ea8325..8bb8b3f 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -6062,6 +6062,18 @@ test -f program-executed-later-in-script || exit 0
script must behave sensibly and not fail if the
/etc/default file is deleted.
+
+
+ /var/run and /var/lock may be mounted
+ as temporary filesystems
+ For example, using the RAMRUN and RAMLOCK
+ options in /etc/default/rcS.
+ , so the init.d scripts must handle this
+ correctly. This will typically amount to creating any required
+ subdirectories dynamically when the init.d script
+ is run, rather than including them in the package and relying on
+ dpkg to create them.
+
diff --git a/upgrading-checklist.html b/upgrading-checklist.html
index cc2934e..f980012 100644
--- a/upgrading-checklist.html
+++ b/upgrading-checklist.html
@@ -64,6 +64,9 @@ picking your way through this list.
arguments and supports assignment. [10.4]
* User mailboxes may be mode 600 and owned by the user rather than
mode 660, owned by user, and group mail. [11.6]
+ * /var/run and /var/lock may be mounted as temporary filesystems, and
+ init scripts must therefore create any necessary subdirectories
+ dynamically. [9.3.2]
3.8.0.0 Jun 2008