Closed Timost closed 1 year ago
@lsm5 PTAL
The user-generator-symlink must be named something like podman-user-generator
to switch quadlet to user mode. See https://github.com/containers/podman/blob/f7ac9fd5d6b7eada42cc3bb9ec33f9ea07df3958/cmd/quadlet/main.go#L297
Ha nice catch ! Thank you, I'll give it a try.
latest build does create the symlinks. Let me know if that fixes the issue
Gonna close this. Please reopen if the issue persists with the latest build on kubic unstable.
Does work now without manually creating the symlinks, thanks.
Issue Description
I'm testing quadlet based container management on an Ubuntu 22.04 system with podman 4.4.2 installed using the kubic repositories.
I know that the kubic repositories are best efforts and not production ready. Nonetheless, I suspect the packaging of quadlet for ubuntu isn't working properly.
Here is what I have found out so far:
Some symlinks seem to be missing:
/usr/libexec/podman/quadlet
->/usr/lib/systemd/user-generators/podman-system-generator
/usr/libexec/podman/quadlet
->/usr/lib/systemd/system-generators/podman-system-generator
Even with these symlinks setup manually, I can't seem to get a working setup:
mytest.container
file in :$HOME/.config/containers/systemd/
systemctl --user daemon-reload
finishes without errorssystemctl --user status mytest.service
returns aUnit mytest.service could not be found
journalctl --user
I tried running manually
/usr/libexec/podman/quadlet -user -v $XDG_RUNTIME_DIR/systemd/generator.late
exits sucessfuly:systemctl --user daemon-reload
systemctl --user status mytest.service
still returns aUnit mytest.service could not be found
I'm using a non standard umask so it's probably causing issues with the workflow, but I still think the simlinks should be created at installation time
Steps to reproduce the issue
Steps to reproduce the issue
apt install podman
/usr/lib/systemd/user-generators/
and/usr/lib/systemd/system-generators/
for the missing podman/quadlet generatorsDescribe the results you received
Missing symlinks for the systemd generators
Describe the results you expected
Podman systemd generators are properly setup in
/usr/lib/systemd/user-generators/
and/usr/lib/systemd/system-generators/
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
0027
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting