summaryrefslogtreecommitdiffstats
path: root/man/os-release.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-21 11:11:01 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-22 12:20:51 +0200
commitc0527e1f951a9fafb6009445c365bc41f5992817 (patch)
tree22636088503ab3e74507eea11bd6d0749ccec716 /man/os-release.xml
parentman: reword description of BUILD_ID in os-release (diff)
downloadsystemd-c0527e1f951a9fafb6009445c365bc41f5992817.tar.xz
systemd-c0527e1f951a9fafb6009445c365bc41f5992817.zip
man: say that initrd-release is like os-release
Diffstat (limited to 'man/os-release.xml')
-rw-r--r--man/os-release.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/man/os-release.xml b/man/os-release.xml
index 52323df6c7..fb24eda182 100644
--- a/man/os-release.xml
+++ b/man/os-release.xml
@@ -16,12 +16,14 @@
<refnamediv>
<refname>os-release</refname>
+ <refname>initrd-release</refname>
<refpurpose>Operating system identification</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para><filename>/etc/os-release</filename></para>
<para><filename>/usr/lib/os-release</filename></para>
+ <para><filename>/etc/initrd-release</filename></para>
</refsynopsisdiv>
<refsect1>
@@ -79,6 +81,19 @@
<para>For a longer rationale for <filename>os-release</filename>
please refer to the <ulink
url="http://0pointer.de/blog/projects/os-release">Announcement of <filename>/etc/os-release</filename></ulink>.</para>
+
+ <refsect2>
+ <title><filename>/etc/initrd-release</filename></title>
+
+ <para>In the <ulink
+ url="https://www.kernel.org/doc/html/latest/admin-guide/initrd.html">initrd</ulink>,
+ <filename>/etc/initrd-release</filename> plays the same role as <filename>os-release</filename> in the
+ main system. Additionally, the presence of that file means that the system is in the initrd phase.
+ <filename>/etc/os-release</filename> should be symlinked to <filename>/etc/initrd-release</filename>
+ (or vice versa), so programs that only look for <filename>/etc/os-release</filename> (as described
+ above) work correctly. The rest of this document that talks about <filename>os-release</filename>
+ should be understood to apply to <filename>initrd-release</filename> too.</para>
+ </refsect2>
</refsect1>
<refsect1>