nspawn: fix locating config files with --ephemeral
authorLuca Boccassi <bluca@debian.org>
Mon, 18 Apr 2022 16:39:18 +0000 (18:39 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Apr 2022 21:17:16 +0000 (06:17 +0900)
commit2362fdde1bd4bf54772383ef29431f683729ba76
treef6553d8adac1a2c49c86d4faf378860c2ce9d5d2
parent39cd62c30c2e6bb5ec13ebc1ecf0d37ed015b1b8
nspawn: fix locating config files with --ephemeral

When --ephemeral is used, a random 16 characters suffix is added to the image
name, so matching on .nspawn files based on the image name no longer works.

Fixes https://github.com/systemd/systemd/issues/13297
src/nspawn/nspawn.c
test/units/testsuite-13.sh