Fix paths in podman-user-wait-network-online.service

The `Exec` line in `podman-user-wait-network-online.service` references
`sleep` which is not on the path by default. When
`network-online.target` is not reached, it thus spams the log with
`sleep: command not found` (cf. #443423).
This commit is contained in:
René Neumann
2025-09-17 23:44:53 +02:00
parent 1bc4de0728
commit deddb93e08
+5
View File
@@ -34,6 +34,8 @@
vfkit,
versionCheckHook,
writableTmpDirAsHomeHook,
coreutils,
runtimeShell,
}:
let
# do not add qemu to this wrapper, store paths get written to the podman vm config and break when GCed
@@ -158,6 +160,9 @@ buildGoModule rec {
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
RPATH=$(patchelf --print-rpath $out/bin/.podman-wrapped)
patchelf --set-rpath "${lib.makeLibraryPath [ systemd ]}":$RPATH $out/bin/.podman-wrapped
substituteInPlace "$out/share/systemd/user/podman-user-wait-network-online.service" \
--replace-fail sleep '${coreutils}/bin/sleep' \
--replace-fail /bin/sh '${runtimeShell}'
'';
doInstallCheck = true;