Skip to content

Commit d0a3467

Browse files
DaanDeMeyerbluca
authored andcommitted
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". (cherry picked from commit 5dd814d) (cherry picked from commit faaa0ee)
1 parent 8f3ec30 commit d0a3467

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tmpfiles/tmpfiles.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static inline bool ERRNO_IS_NOINFO(int r) {
233233
return IN_SET(abs(r),
234234
EUNATCH, /* os-release or machine-id missing */
235235
ENOMEDIUM, /* machine-id or another file empty */
236+
ENOPKG, /* machine-id is uninitialized */
236237
ENXIO); /* env var is unset */
237238
}
238239

0 commit comments

Comments
 (0)