On 2/23/19 10:58 AM, Daniel Schepler via lfs-dev wrote:
I just noticed that section 9.1 "The End" creates a file
/etc/os-release.  However, the systemd documentation [os-release(5)]
recommends that this file should be in /usr/lib/os-release and that
/etc/os-release should be a relative symlink to /usr/lib/os-release.
So, I wonder if lfs-systemd at least should be updated accordingly,
and possibly the base lfs as well.


https://www.freedesktop.org/software/systemd/man/os-release.html

"The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Applications should not read data from both files at the same time. /usr/lib/os-release is the recommended place to store OS release information as part of vendor trees. /etc/os-release should be a relative symlink to /usr/lib/os-release, to provide compatibility with applications only looking at /etc. A relative symlink instead of an absolute symlink is necessary to avoid breaking the link in a chroot or initrd environment such as dracut."

Since we have /etc/os-release and /usr/lib/os-release is only recommended, I think we are OK.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to