From: Yu Watanabe Date: Thu, 8 Dec 2022 06:49:02 +0000 (+0900) Subject: man: mention that sd_id128_get_boot() and friend may return -ENOSYS X-Git-Tag: v253-rc1~315^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c576920e673114529c5bfe5ea29891a24a443338;p=thirdparty%2Fsystemd.git man: mention that sd_id128_get_boot() and friend may return -ENOSYS And drop to mention sd_id128_get_boot_app_specific() may return -ENOENT or -ENOMEDIUM. The function does not read /etc/machine-id. But reads a file in the procfs, which is a kind of the kernel API. Hence the failures are caused only when the system has wrong setup. --- diff --git a/man/sd_id128_get_machine.xml b/man/sd_id128_get_machine.xml index 8bc76b686b6..dbc6d4885d5 100644 --- a/man/sd_id128_get_machine.xml +++ b/man/sd_id128_get_machine.xml @@ -129,19 +129,17 @@ -ENOENT - Returned by sd_id128_get_machine(), - sd_id128_get_machine_app_specific(), and - sd_id128_get_boot_app_specific() when /etc/machine-id is - missing. + Returned by sd_id128_get_machine() and + sd_id128_get_machine_app_specific() when /etc/machine-id + is missing. -ENOMEDIUM - Returned by sd_id128_get_machine(), - sd_id128_get_machine_app_specific(), and - sd_id128_get_boot_app_specific() when /etc/machine-id is - empty or all zeros. + Returned by sd_id128_get_machine() and + sd_id128_get_machine_app_specific() when /etc/machine-id + is empty or all zeros. @@ -152,6 +150,14 @@ /etc/machine-id is uninitialized. + + -ENOSYS + + Returned by sd_id128_get_boot() and + sd_id128_get_boot_app_specific() when /proc/ is not + mounted. + + -ENXIO