mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user