-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podman cannot start on Linux due to faulty homebrew.podman.service file #18802
Podman cannot start on Linux due to faulty homebrew.podman.service file #18802
Comments
This seems to rather be an issue regarding how we handle shell quoting when generating systemd service files. The
EDIT 2: Perhaps we could implement a Footnotes |
Workaround for Homebrew/brew#18802.
@radicaled, the As for the broader issue regarding how escapes like this are handled, do you mind if we continue to use this issue to track that? If you prefer it to be done elsewhere, please feel free to close this and I'll open another issue. |
By all means, do whatever makes your life easier. Thank you for fixing the bug, by the way! |
@ZhongRuoyu
as you can see execstart has wrong escapes should be: therefore service never starts:
logs(
but if I start it manually, it works: |
Other reports of same issue:
Wrapping with quotes is possible if following rules of systemd quoting -https://www.freedesktop.org/software/systemd/man/latest/systemd.syntax.html#Quoting
I believe some old versions of systemd also have a bug when quoting the command itself. Environment variables are often mentioned as workaround using the rules of
|
Fixes #18802 (affected formulae still need rebuilding).
This has been fixed in |
Thank you very much for your work!
|
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: