]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: Consider ENOPKG as information not available
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 14:12:35 +0000 (16:12 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 18:16:23 +0000 (20:16 +0200)
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".

src/tmpfiles/tmpfiles.c

index 978d3712689e02ce81432026538fd335c0946b06..b8fb5c3b3ba159718ea60f793b64dd9a65fa4dc6 100644 (file)
@@ -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 */
 }