podman/pkg/systemd
jbtrystram ad1d3f8fc7
quadlet: Add a network requirement on .image units
If a container unit starts on boot with a dependency on `default.target`
the image unit may start too soon, before network is ready. This cause
the unit to fail to pull the image.
- Add a dependency on `network-online.target` to make sure image pulls
don't fail.
See https://github.com/containers/podman/issues/21873

- Document the hardcoded dependency on `network-online.target` for images unit
and explain how it can be overriden if necessary.

- tests/e2e/quadlet: Add `assert-last-key-regex`

Required to test the `After=` override in [Unit] section
See https://github.com/containers/podman/pull/22057#issuecomment-2008959993

- quadlet/unitfile: add a prepenUnitLine method

Requirements on networks should be inserted at the top of the
section so the user can override them.

Signed-off-by: jbtrystram <jbtrystram@redhat.com>
2024-05-22 13:46:42 +02:00
..
define generate systemd: handle --restart 2021-09-07 13:58:11 +02:00
generate Bump Go module to v5 2024-02-08 09:35:39 -05:00
notifyproxy Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
parser quadlet: Add a network requirement on .image units 2024-05-22 13:46:42 +02:00
quadlet quadlet: Add a network requirement on .image units 2024-05-22 13:46:42 +02:00
activation.go pkg/systemd: don't require LISTEN_FDNAMES for socket activation 2021-06-24 09:01:39 -06:00
activation_test.go lint: fix warnings found by perfsprint 2023-10-20 16:27:46 +02:00
dbus.go Bump Go module to v5 2024-02-08 09:35:39 -05:00