| #
c1806377 |
| 23-Nov-2021 |
Mateusz Piotrowski <[email protected]> |
os-release: Quote variables as documented in the manual
Variables must be quoted if they contain non-alphanumeric characters.
Warner noted in the review that the lack of quoting causing problems he
os-release: Quote variables as documented in the manual
Variables must be quoted if they contain non-alphanumeric characters.
Warner noted in the review that the lack of quoting causing problems here is rather an edge case. I believe that it's worth adding the quotes here anyway because this is what the specification says and there is no good reason not to follow it.
Reviewed by: imp Approved by: imp (src) MFC after: 7 days
(cherry picked from commit 169e06fa7852810f4ced2cce7a3c14ca9443bf39)
show more ...
|
| #
6467506b |
| 20-Nov-2019 |
Warner Losh <[email protected]> |
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 ne
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
show more ...
|