From: Lennart Poettering Date: Tue, 14 Jul 2026 13:30:42 +0000 (+0200) Subject: man: update version formatting requirements in os-release X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5051def45cf8c487c14886c08ffe3731c85ae2e6;p=thirdparty%2Fsystemd.git man: update version formatting requirements in os-release Allow full UAPI.10 version strings, i.e. "+", "_", "~" and "^" too, to match the recent reworking. These version strings are generally distro-managed, hence use the more liberal alphabet. Fixes: #32785 --- diff --git a/man/os-release.xml b/man/os-release.xml index 94617ae243d..adac119c6d0 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -282,10 +282,14 @@ VERSION_ID= - A lower-case string (mostly numeric, no spaces or other characters outside of 0–9, - a–z, ".", "_" and "-") identifying the operating system version, excluding any OS name information - or release code name, and suitable for processing by scripts or usage in generated filenames. This - field is optional. + A string (lower-case recommended, no spaces or other characters outside of 0–9, + a–z, A-Z, ".", "-", "~", "^", "+" and "_") identifying the operating system version, excluding any + OS name information or release code name, and suitable for processing by scripts or usage in + generated filenames. This field is optional. + + It is recommended to follow the UAPI.10 Version + Format Specification for this version string, but this is generally not enforced. Examples: VERSION_ID=17, VERSION_ID=11.04. @@ -294,10 +298,11 @@ VERSION_CODENAME= - A lower-case string (no spaces or other characters outside of 0–9, a–z, ".", "_" - and "-") identifying the operating system release code name, excluding any OS name information or - release version, and suitable for processing by scripts or usage in generated filenames. This field - is optional and may not be implemented on all systems. + A string (lower-case recommended, no spaces or other characters outside of 0–9, + a–z, A-Z, ".", "-", "~", "^", "+", and "_") identifying the operating system release code name, + excluding any OS name information or release version, and suitable for processing by scripts or + usage in generated filenames. This field is optional and may not be implemented on all + systems. Examples: VERSION_CODENAME=buster, VERSION_CODENAME=xenial. @@ -341,10 +346,14 @@ IMAGE_VERSION= - A lower-case string (mostly numeric, no spaces or other characters outside of 0–9, - a–z, ".", "_" and "-") identifying the OS image version. This is supposed to be used together with - IMAGE_ID described above, to discern different versions of the same image. - + A string (lower-case recommended, no spaces or other characters outside of 0–9, + a–z, A-Z, ".", "-", "~", "^", "+" and "_") identifying the OS image version. This is supposed to be + used together with IMAGE_ID described above, to discern different versions of + the same image. + + It is recommended to follow the UAPI.10 Version + Format Specification for this version string, but this is generally not enforced. Examples: IMAGE_VERSION=33, IMAGE_VERSION=47.1rc1.