nspawn: ignore NULL machine ID in the container
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Apr 2023 05:59:46 +0000 (14:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Apr 2023 15:52:56 +0000 (00:52 +0900)
commit319477f1b6db521ebc7c3db911ecb1a767a621aa
tree11607fbd37a1c1ae9b2684130a2e05de0dfdb51d
parent5ee37b703e686782be565b2d0638c5488770141e
nspawn: ignore NULL machine ID in the container

Previously, when the NULL (all zero) machine ID is configured in the
container, nspawn refused to execute.

Now id128_get_machine() is used, so NULL machine ID is refused with
-ENOMEDIUM, and fallback to specified UUID or randomly generated one.
src/nspawn/nspawn.c