nspawn: fix locating config files with --ephemeral
authorLuca Boccassi <bluca@debian.org>
Mon, 18 Apr 2022 16:39:18 +0000 (18:39 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Apr 2022 17:03:35 +0000 (19:03 +0200)
commit79b86adcbd5c11f9e755598c8c0cd71da9c120c1
tree3c23509864473183012854358861e806a0803f29
parentc202d402d9572a8290f9a2ccd66b1dc419e54ee7
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

(cherry picked from commit 2362fdde1bd4bf54772383ef29431f683729ba76)
src/nspawn/nspawn.c
test/units/testsuite-13.sh