diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-02-01 12:08:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-02-01 15:25:30 +0100 |
commit | 74e795ee5506821c3ee590f8ab0a968801422eba (patch) | |
tree | 8a4ff67dec34790ff22820ec2bd108902764e95e /src/nspawn | |
parent | 19cfda9fc3c60de21a362ebb56bcb9f4a9855e85 (diff) | |
download | systemd-74e795ee5506821c3ee590f8ab0a968801422eba.tar.gz |
id128: introduce ERRNO_IS_MACHINE_ID_UNSET() helper macro
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index f16d9506eb..3567d034e7 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2841,7 +2841,7 @@ static int setup_machine_id(const char *directory) { r = id128_read(etc_machine_id, ID128_FORMAT_PLAIN, &id); if (r < 0) { - if (!IN_SET(r, -ENOENT, -ENOMEDIUM, -ENOPKG)) /* If the file is missing, empty, or uninitialized, we don't mind */ + if (!ERRNO_IS_MACHINE_ID_UNSET(r)) /* If the file is missing, empty, or uninitialized, we don't mind */ return log_error_errno(r, "Failed to read machine ID from container image: %m"); if (sd_id128_is_null(arg_uuid)) { |