Package: base-files Version: 6.1 Severity: normal Tags: patch Hi Santiago,
Attached is a patch for adding a new top-level directory, /run. References: http://thread.gmane.org/gmane.linux.redhat.fedora.devel/146976 https://lwn.net/Articles/436012/ This has already been adopted by Fedora, and it's something we've wanted in Debian for years (but settled on /lib/init/rw for FHS compliance). /run is wider in scope than /lib/init.rw, and will be used for transient writable data present from system startup to shutdown, which is not preserved across reboots, and will therefore supercede /var/run, /var/lock, /lib/init/rw and existing use of /dev and /etc as a place to put writable program state. Once set up by initscripts, I expect we will then need to replace /var/run and /var/lock with symlinks, which will require an additional change to base-files once /run is set up and functional. Bind mounting is an alternative, but bind mounting /run will hide files created earlier in the boot sequence, though it would be feasible for /var/lock. Regards, Roger -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (550, 'unstable'), (400, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages base-files depends on: ii gawk [awk] 1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr ii mawk [awk] 1.3.3-15 a pattern scanning and text proces base-files recommends no packages. base-files suggests no packages. -- no debconf information
diff -urN base-files-6.1.original/debian/changelog base-files-6.2/debian/changelog --- base-files-6.1.original/debian/changelog 2011-03-30 16:23:23.562397543 +0100 +++ base-files-6.2/debian/changelog 2011-03-30 16:35:15.875030171 +0100 @@ -1,3 +1,13 @@ +base-files (6.2) unstable; urgency=low + + * Add /run. /run is a replacement for /var/run, /var/lock and + /lib/init/rw, plus existing (ab)use of the writable tmpfs on /dev + and writing into /etc. It will be used to mount a tmpfs prior to + /var being mounted, and serve as a unified location for transient + writable data which should not be preserved across reboots. + + -- Roger Leigh <rle...@debian.org> Wed, 30 Mar 2011 16:29:02 +0100 + base-files (6.1) unstable; urgency=medium * Changed issue, issue.net and debian_version to read "wheezy/sid". diff -urN base-files-6.1.original/debian/directory-list base-files-6.2/debian/directory-list --- base-files-6.1.original/debian/directory-list 2011-03-30 16:23:23.562397543 +0100 +++ base-files-6.2/debian/directory-list 2011-03-30 16:24:02.178847205 +0100 @@ -10,6 +10,7 @@ mnt proc root +run sbin tmp usr