Suggested changes to util-linux for FHS compliance.

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

 



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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux