From: Daan De Meyer Date: Fri, 4 Aug 2023 14:12:35 +0000 (+0200) Subject: tmpfiles: Consider ENOPKG as information not available X-Git-Tag: v255-rc1~819 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5dd814d7cd88b9d58c7c5bd79fb27ee2b22e82a3;p=thirdparty%2Fsystemd.git tmpfiles: Consider ENOPKG as information not available We already handle the case where /etc/machine-id is empty. Let's make sure we also handle the case where /etc/machine-id is "uninitialized". --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 978d3712689..b8fb5c3b3ba 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -237,6 +237,7 @@ static inline bool ERRNO_IS_NOINFO(int r) { return IN_SET(abs(r), EUNATCH, /* os-release or machine-id missing */ ENOMEDIUM, /* machine-id or another file empty */ + ENOPKG, /* machine-id is uninitialized */ ENXIO); /* env var is unset */ }