mirror of
https://github.com/systemd/systemd.git
synced 2025-03-06 00:58:29 +03:00
test: make coverage runs happy with capsule@.service
capsule@.service uses DynamicUser=yes, so let's use the same tweak we use for other such units.
This commit is contained in:
parent
838235be87
commit
607be850b9
@ -1494,7 +1494,7 @@ install_systemd() {
|
||||
# units using DynamicUser=yes. Do this only for services with test- prefix and a couple of
|
||||
# known-to-use DynamicUser=yes services, as setting this system-wide has many undesirable
|
||||
# side-effects, as it creates its own namespace.
|
||||
for service in test- systemd-journal-{gatewayd,upload}; do
|
||||
for service in capsule@ test- systemd-journal-{gatewayd,upload}; do
|
||||
mkdir -p "$initdir/etc/systemd/system/$service.service.d/"
|
||||
echo -ne "[Service]\nReadWritePaths=${BUILD_DIR:?}\n" >"$initdir/etc/systemd/system/$service.service.d/99-gcov-rwpaths-override.conf"
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user