Skip to content

Include more systemd units in the tarball - follow-up to #159 - #172

Open
tobwen wants to merge 4 commits into
mgoltzsche:masterfrom
tobwen:include-more-systemd-units
Open

Include more systemd units in the tarball - follow-up to #159#172
tobwen wants to merge 4 commits into
mgoltzsche:masterfrom
tobwen:include-more-systemd-units

Conversation

@tobwen

@tobwen tobwen commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #159: same content, rebased onto the current master, with two fixes to the netavark unit installation.

Details

Like #159, this sources the systemd unit files from upstream instead of the vendored copies in conf/systemd/, and adds the netavark-* units to the tarball. On top of that it fixes two issues I found in #159:

  1. The generated netavark units substitute @@NETAVARK@@ with $(LIBEXECPODMAN)/netavark. netavark v2.1.0 defaults LIBEXECPODMAN to /usr/local/libexec/podman, but this image ships the netavark binary at /usr/local/lib/podman/netavark - so all three netavark units referenced a non-existent path. Fixed by passing LIBEXECPODMAN=/usr/local/lib/podman to make install.systemd.
  2. The tar stage copied the whole contrib/systemd/system build directory, which also ships the .service.in templates in the tarball. Fixed by copying the installed units from /systemd instead.

Verified by building the tar-archive target

  • /usr/local/lib/systemd/system contains all unit files with correct ExecStart paths (/usr/local/lib/podman/netavark, /usr/local/bin/podman),
  • no .service.in files.

cyqsimon and others added 4 commits September 5, 2026 15:29
Set `LIBEXECPODMAN` so the generated units point to the netavark binary
location used by this image, and copy the installed units from `/systemd`
instead of the build directory to avoid shipping `.service.in` templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants