Commit Graph
1 Commits
Author SHA1 Message Date
dualfroz 00a1dd936a fix(quadlet): convert leading ~ in host paths to %h
systemd does not perform shell-style tilde expansion, so a host path
starting with `~/` left in a generated Quadlet file is passed to Podman
as an invalid relative path and the service fails to start. Replace the
leading `~` with the systemd `%h` specifier instead.

Also fix the systemd specifier check in `absolute_clean_path()`, which
used `Path::starts_with()` and therefore only matched a path whose first
component was exactly `%`, causing `--absolute-host-paths` to prepend the
resolve directory to paths such as `%h/data`.

Closes: #166

Signed-off-by: DualFroz <me@dualfroz.com>
2026-09-13 15:08:58 +02:00