From 5dd814d7cd88b9d58c7c5bd79fb27ee2b22e82a3 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 4 Aug 2023 16:12:35 +0200 Subject: [PATCH] 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". --- src/tmpfiles/tmpfiles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 978d371268..b8fb5c3b3b 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 */ }