systemd: replace multi-user with default.target

Replace `multi-user.target` with `default.target` across the code base.
It seems like the multi-user one is not available for (rootless) users
on F35 anymore is causing issues in all kinds of ways, for instance,
enabling the podman.service or generated systemd units.

Fixes: #12438
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2021-11-30 11:36:11 +01:00
parent 8de68b1707
commit 9a10e2124b
13 changed files with 52 additions and 41 deletions

View File

@ -62,7 +62,7 @@ PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e
Type=forking
[Install]
WantedBy=multi-user.target default.target
WantedBy=default.target
`
podGood := serviceInfo + headerInfo + podContent
podGoodNoHeaderInfo := serviceInfo + podContent
@ -92,7 +92,7 @@ PIDFile=%t/pod-123abc.pid
Type=forking
[Install]
WantedBy=multi-user.target default.target
WantedBy=default.target
`
podGoodNamedNewWithRootArgs := `# pod-123abc.service
@ -120,7 +120,7 @@ PIDFile=%t/pod-123abc.pid
Type=forking
[Install]
WantedBy=multi-user.target default.target
WantedBy=default.target
`
podGoodNamedNewWithReplaceFalse := `# pod-123abc.service
@ -148,7 +148,7 @@ PIDFile=%t/pod-123abc.pid
Type=forking
[Install]
WantedBy=multi-user.target default.target
WantedBy=default.target
`
podNewLabelWithCurlyBraces := `# pod-123abc.service
@ -176,7 +176,7 @@ PIDFile=%t/pod-123abc.pid
Type=forking
[Install]
WantedBy=multi-user.target default.target
WantedBy=default.target
`
tests := []struct {