From: Zbigniew Jędrzejewski-Szmek Date: Tue, 8 Mar 2022 09:10:12 +0000 (+0100) Subject: man/os-release: add a note about repeating entries X-Git-Tag: v251-rc1~3^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a84a3c9dfde5182398a6d0863a2b2fe90a936b1;p=thirdparty%2Fsystemd.git man/os-release: add a note about repeating entries We didn't actually say that keys should not be repeated. At least the examples in docs (both python and shell) would do that, and any simple parser that builds a dictionary would most likely behave the same way. But let's document this expectation, but also say how to deal with malformed files. --- diff --git a/man/os-release.xml b/man/os-release.xml index 4acd1a9a575..7e3e9a73a8c 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -75,6 +75,10 @@ from earliest boot on, and hence must be located on the root file system. + os-release must not contain repeating keys. Nevertheless, readers should pick + the entries later in the file in case of repeats, similarly to how a shell sourcing the file would. A + reader may warn about repeating entries. + For a longer rationale for os-release please refer to the Announcement of /etc/os-release.