diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-11-20 23:45:31 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-11-20 23:45:31 +0000 |
commit | 6467506baf5c2958d7d19546cf4076d19a8586c2 (patch) | |
tree | 390cb9030923021327350dc295f1d76a8ae41911 /etc | |
parent | 599d032a6dfbb7950906a2e26c6b3035f39e3ac7 (diff) | |
download | src-test2-6467506baf5c2958d7d19546cf4076d19a8586c2.tar.gz src-test2-6467506baf5c2958d7d19546cf4076d19a8586c2.zip |
Create /etc/os-release file.
Each boot, regenerate /var/run/os-release based on the currently running
system. Create a /etc/os-release symlink pointing to this file (so that this
doesn't create a new reason /etc can not be mounted read-only).
This is compatible with what other systems do and is what the sysutil/os-release
port attempted to do, but in an incomplete way. Linux, Solaris and DragonFly all
implement this natively as well. The complete standard can be found at
https://www.freedesktop.org/software/systemd/man/os-release.html
Moving this to the base solves both the non-standard location problem with the
port, as well as the lack of update of this file on system update.
Bump __FreeBSD_version to 1300060
PR: 238953
Differential Revision: https://reviews.freebsd.org/D22271
Notes
Notes:
svn path=/head/; revision=354922
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile index e2cac7446e1c..8cef7c89c19c 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -57,6 +57,8 @@ distribution: ${_+_}cd ${.CURDIR}/mtree; ${MAKE} install ${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap ${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt + ${INSTALL_SYMLINK} ../var/run/os-release \ + ${DESTDIR}/etc/os-release .if ${MK_UNBOUND} != "no" if [ ! -e ${DESTDIR}/etc/unbound ]; then \ ${INSTALL_SYMLINK} -T "package=unbound" \ |