mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
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".
This commit is contained in:
parent
bdfa3f3a5c
commit
5dd814d7cd
@ -237,6 +237,7 @@ static inline bool ERRNO_IS_NOINFO(int r) {
|
|||||||
return IN_SET(abs(r),
|
return IN_SET(abs(r),
|
||||||
EUNATCH, /* os-release or machine-id missing */
|
EUNATCH, /* os-release or machine-id missing */
|
||||||
ENOMEDIUM, /* machine-id or another file empty */
|
ENOMEDIUM, /* machine-id or another file empty */
|
||||||
|
ENOPKG, /* machine-id is uninitialized */
|
||||||
ENXIO); /* env var is unset */
|
ENXIO); /* env var is unset */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user