You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed podman and tried to start the service via brew services start podman.
What happened (include all command output)?
==> Successfully started podman (label: homebrew.podman)
Despite the message, podman did not start.
These loglines were present in systemd logs when using journalctl --user -u homebrew.podman
Nov 20 17:49:22 pop-os systemd[1687]: Started Homebrew generated unit for podman.
Nov 20 17:49:22 pop-os podman[113259]: Error: unknown flag: --time\
Nov 20 17:49:22 pop-os podman[113259]: See 'podman system service --help'
Nov 20 17:49:22 pop-os systemd[1687]: homebrew.podman.service: Main process exited, code=exited, status=125/n/a
Nov 20 17:49:22 pop-os systemd[1687]: homebrew.podman.service: Failed with result 'exit-code'.
Inspecting the Homebrew generated homebrew.podman.service reveals a problem with this particular line:
ExecStart=/home/linuxbrew/.linuxbrew/opt/podman/bin/podman system service --time\=0.
The backslash here prevents the systemd from starting the service.
This seems to rather be an issue regarding how we handle shell quoting when generating systemd service files. The \= escape in the ExecStart line, generated by Utils::Shell#shell_quote1, is not a valid escape in systemd 2 so it is instead treated as two characters.
So, I think we may need to "drop back to the original approach" as mentioned in #15880 (comment) (i.e., use the initial approach in #15875). EDIT: That doesn't handle the case where there is single quote in the argument. Escapes are hard to handle :(
EDIT 2: Perhaps we could implement a systemd_escape method that does the same as unit_name_escape in systemd 3?
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Installed podman and tried to start the service via
brew services start podman
.What happened (include all command output)?
==> Successfully started
podman(label: homebrew.podman)
Despite the message, podman did not start.
These loglines were present in systemd logs when using
journalctl --user -u homebrew.podman
Inspecting the Homebrew generated
homebrew.podman.service
reveals a problem with this particular line:ExecStart=/home/linuxbrew/.linuxbrew/opt/podman/bin/podman system service --time\=0
.The backslash here prevents the systemd from starting the service.
What did you expect to happen?
Podman to start.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: