[Pkg-sysvinit-devel] /run transition

Roger Leigh rleigh at codelibre.net
Sat Apr 23 09:17:39 UTC 2011


On Sat, Apr 23, 2011 at 11:01:22AM +0200, Petter Reinholdtsen wrote:
> [Roger Leigh]
> > Following discussion with the systemd folks, they would prefer it if we
> > could deprecate /etc/default/tmpfs and migrate to using /etc/fstab
> > directly.  This is because systemd can't make use of /etc/default/fstab
> > directly, and if we both use fstab it's both more obvious for the user
> > since it's in an expected place, and it can be shared with systemd.
> 
> Dropping support for /etc/default/tmpfs is not a good idea, as it will
> break existing installations with settings in the file on upgrade.

The idea is that the settings in /etc/default/tmpfs will not be lost;
we create an entry in /etc/fstab using those settings, and given that
these already override /etc/default/tmpfs, /etc/fstab will become the
new location for the settings.  This occurs in the postinst because
that's the only time /etc/fstab is guaranteed writable.  If you haven't
modified any of the defaults, then no fstab entries will be created
(the hardcoded defaults will continue to be used), and if you want to
make modifications in the future then they can be made in /etc/fstab.
We would obviously need to update rcS(5) to document the change.

I'm open to suggestions if there's a better way to do this.


Regards,
Roger

-- 
  .''`.  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: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110423/cc1b769c/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list