Use Systemd specifiers in the line "RequiresMountsFor=" from "podman generate systemd --new" #10493
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
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 feature
Description
podman generate systemd --new
does not make use of Systemd specifiers in the line that starts withRequiresMountsFor=
.By changing for instance
to
the unit file would be made more portable and could be reused by another user. (If the other user would have a non-standard Podman configuration it would not work but that would be an edge case).
The list of available Systemd specifiers can be seen in Table 4. Specifiers available in unit files in
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
Steps to reproduce the issue:
Create the new user tmptest and log in to that account
Create the container foobar
Generate a Systemd user service
Describe the results you received:
I see the line
Describe the results you expected:
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
):The text was updated successfully, but these errors were encountered: