The podman generate systemd command generated the wrong file. #9373
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The podman generate systemd command generated the wrong file.
This usually only occurs in the cgroups v2 environment, it does not seem to happen in the cgroups v1 environment.
Steps to reproduce the issue:
1.
podman pod create --name test-pod
2.
podman run -d --name test --pod test-pod docker.io/hello-world
3.
cat ~/.config/systemd/user/container-test.service
Describe the results you received:
--pod-id-file %%t/pod-test-pod.pod-id
The content of line 21 is obviously wrong.
When I changed
%%t
to%t
, everything seemed to be normal.Describe the results you expected:
Let the podman generate systemd command work properly.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
KVM
The text was updated successfully, but these errors were encountered: