]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/path-util.c
os-release: define /usr/lib/os-release as fallback for /etc/os-release
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Jun 2014 17:45:52 +0000 (19:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Jun 2014 18:11:59 +0000 (20:11 +0200)
commit5ae4d543cb9b45ad6c6b82b78da1d6abc2291cdb
treecf4d8817660f9a2a828c16ce42392703a5ccd690
parentb0284aba93e8ccd415da5bbee86d84c12b1b9856
os-release: define /usr/lib/os-release as fallback for /etc/os-release

The file should have been in /usr/lib/ in the first place, since it
describes the OS container in /usr (and not the configuration in /etc),
hence, let's support os-release files in /usr/lib as fallback if no
version in /etc exists, following the usual override logic.

A prior commit already enabled tmpfiles to create /etc/os-release as a
symlink to /usr/lib/os-release should it be missing, thus providing nice
compatibility with applications only checking in /etc.

While it's probably a good idea if all apps check both locations via a
fallback logic, it is only necessary in the early boot process, as long
as the /etc/os-release symlink has not been restored, in case we boot
with an empty /etc.
man/kernel-install.xml
man/os-release.xml
man/systemd-nspawn.xml
src/bootchart/bootchart.c
src/core/dbus-manager.c
src/core/main.c
src/hostname/hostnamed.c
src/journal/journal-gatewayd.c
src/kernel-install/90-loaderentry.install
src/nspawn/nspawn.c
src/shared/path-util.c