[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /tmp as tmpfs and consequence for imaging software



On Sun, Nov 13, 2011 at 10:09:16PM +0100, Tollef Fog Heen wrote:
> ]] Roger Leigh 
> 
> | I may have given an incomplete picture here.  While we set the defaults
> | there, any entry in /etc/fstab will override those defaults.
> 
> Can you please not set the default in a file in /etc then, since then
> people expect to be able to change them and bugs file bugs on systemd
> when it doesn't use the sysvinit settings.  (Or mark the setting as
> sysvinit-only.)

For new stuff, certainly.  The existing ones exist primarily due to
historical practice, and as fallbacks should an fstab entry not
exist.  I don't want to break any existing configuration by removing
the feature, hence the fstab options will be used in preference
should they be present, enabling a migration to that.  But we can
certainly deprecate /etc/default/tmpfs and rely solely upon the
hardcoded defaults in /lib/init/tmpfs.sh.

> | So it is already the case that the /etc/fstab entries could be used
> | by any init system.  I would quite like for these to be created for
> | new installations by the debian-installer, if the d-i folks could do
> | that.
> 
> That sounds like a good plan to me.

#633299 FWIW.

Only supporting entries if present in the fstab is somewhat
restrictive, given that various kernel filesystems come and go, and
some tmpfs mounts e.g. /lib/init/rw are also going.  Having these
permanently in the fstab does make upgrades potentially problematic--
we would need to edit the fstab, which is a bit hairy should things
go wrong.  I quite like the existing approach having the fstab
entries optional should the user choose to override the settings,
since the majority of users will never then need to care about it.
I would be happy to do this should we have a sane way of adding and
removing entries on upgrades, rather than expecting them to be static
from first install.


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.


Reply to: