util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suggested changes to util-linux for FHS compliance.
@ 2021-02-12 17:04 Bruce Dubbs
  2021-02-15  9:16 ` Karel Zak
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Dubbs @ 2021-02-12 17:04 UTC (permalink / raw)
  To: Util-Linux

I don't recall if this has come up before, but I suggest a couple of 
changes to the default util-linux build configuuration:

1. Change the default ADJTIME_PATH to be /var/lib/hwclock/adjtime

This would be a one line change to include/pathnames.h:
   # define _PATH_ADJTIME              "/etc/adjtime"

For a reference, see the FHS paragraph 5.8.6:

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s08.html#varlibhwclockStateDirectoryForHwclo

Currently this behavior can be done by exporting the environment 
variable ADJTIME_PATH=/var/lib/hwclock/adjtime before running configure, 
but is undocumented except in the 2.25 release notes.

2. Change the references to /var/run to just /run or at least add a 
configure option --runstatedir=<path>.

Most systems today create /run as a tmpfs.  See:

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html and
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html

Currently this change can be manually made by setting an environment 
variable, runstatedir=/run when running configure, but is undocumented.

   -- Bruce Dubbs
      linuxfromscratch.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-08 11:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 17:04 Suggested changes to util-linux for FHS compliance Bruce Dubbs
2021-02-15  9:16 ` Karel Zak
2021-02-18 15:37   ` Bruce Dubbs
2021-02-19 11:14     ` Karel Zak
2021-02-19 17:12       ` Bruce Dubbs
2021-02-19 11:30   ` Karel Zak
2021-03-08 11:21     ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).