systemd/SOURCES/0764-man-mention-sd_id128_get_machine-or-friend-may-retur.patch

33 lines
1.1 KiB
Diff

From 1d0f2f8d806758a70e8fc81536e0cf54649f1bf5 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Thu, 8 Dec 2022 15:43:26 +0900
Subject: [PATCH] man: mention sd_id128_get_machine() or friend may return
-ENOPKG
(cherry picked from commit a237c6e0b0b294cebc084891a84173a19eb69172)
Related: RHEL-27512
---
man/sd_id128_get_machine.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/man/sd_id128_get_machine.xml b/man/sd_id128_get_machine.xml
index a778f8a2b0..8bc76b686b 100644
--- a/man/sd_id128_get_machine.xml
+++ b/man/sd_id128_get_machine.xml
@@ -144,6 +144,14 @@
empty or all zeros.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><constant>-ENOPKG</constant></term>
+
+ <listitem><para>Returned by <function>sd_id128_get_machine()</function> and
+ <function>sd_id128_get_machine_app_specific()</function> when the content of
+ <filename>/etc/machine-id</filename> is <literal>uninitialized</literal>.</para></listitem>
+ </varlistentry>
+
<varlistentry>
<term><constant>-ENXIO</constant></term>