-
Notifications
You must be signed in to change notification settings - Fork 662
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
multipassd fails when sudo group does not exist #456
Comments
Yeah we don't want it to be |
I don't think making the multipass socket's group Lastly, there will be a |
Feels like an |
Well, that would work for snap installs only, but when building and running from source, that won't work. It seems to me that we would still need the logic in |
@townsend2010 it's customary for services to just expose |
Ok...I guess as a workaround for the issue I outlined above, we can set this as an env var like we do the for the particular backend driver and then in my development where I run the binary from built source, I'll just export the env var value. For example, set the particular configuration key like: And when I run multipassd by hand, I can just export that env var to what I want. And then for the snap scenario, it will do as you suggest and find a suitable group for the socket. How does that sound? |
Sure, env vars are good, too. I suppose long-term for each (most?) option FWIW for development you could very well just run |
Fall back to 'root' if those groups don't exist on the host instead of throwing an exception. Fixes #456
Fall back to 'root' if those groups don't exist on the host instead of throwing an exception. Fixes #456
513: Fix daemon missing group r=Saviq a=townsend2010 I combined a few fixes in this as separate commits since they all went hand in hand and solve a couple of issues together. Fixes #456, fixes #460 Co-authored-by: Chris Townsend <[email protected]> Co-authored-by: Michał Sawicz <[email protected]>
513: Fix daemon missing group r=Saviq a=townsend2010 I combined a few fixes in this as separate commits since they all went hand in hand and solve a couple of issues together. Fixes #456, fixes #460 Co-authored-by: Chris Townsend <[email protected]> Co-authored-by: Michał Sawicz <[email protected]>
513: Fix daemon missing group r=Saviq a=townsend2010 I combined a few fixes in this as separate commits since they all went hand in hand and solve a couple of issues together. Fixes #456, fixes #460 Co-authored-by: Chris Townsend <[email protected]> Co-authored-by: Michał Sawicz <[email protected]>
Thanks for the fix! |
I've installed multipass on Arch (either using --beta or --edge), multipassd exited with error:
The relevant piece of log is:
Apparently there is an assumption that sudo group must be present in the system: https://github.com/CanonicalLtd/multipass/blob/6b83f4073a45b19ca5594f5524e98ebe2434d507/src/daemon/daemon_main.cpp#L52-L72 which may not always be the case. For instance Arch does not have a sudo group. I checked with Fedora 28 cloud image, same thing there, no sudo group. Given that
multipass
is used bysnapcraft
to enabled building snaps on non Ubuntu systems, this may cause problems down the road.Perhaps it would be best to leave the gorup ownership as
root:root
when there's no sudo available. Alternatively, since it's a classic snap, maybe you could try to add amultipass
group in the install hook and use that for ownership.The text was updated successfully, but these errors were encountered: