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
systemd: added groups kvm, render #45083
Conversation
I assume /dev/kvm will be then owned by the |
@Mic92: On my system /dev/kvm is read- and writable for all with permissions crw-rw-rw- so it probably doesn't matter, which group owns /dev/kvm. Otherwise I would be glad to install my nixos from a release-18.03 with this commit cherry picked. I just don't know, how to do it. Is the only way to provide a custom channel? (url with nixexprs.tgz and binary-cache-url files?) |
You can set the NIX_PATH environment variable to your nixpkgs fork: |
I did
|
|
NixOS comes with a udev rule to set 0666 for
so the group of the device node isn't relevant. |
BTW they do have a sysusers.d file which could be used to check which users are necessary: https://github.com/systemd/systemd/blob/e97b7b5a9c6d76964e3b9d8947ab6ccb30104e0e/sysusers.d/basic.conf.in |
Hmm, it build a new system derivation, but in |
@dezgeg Why not just trust the README? |
@dezgeg render and kvm groups are mentioned in the file you specify. |
Ah, I need to alter |
they need to exist according to the README of systemd
After a rebuild and a reboot:
That should be ok? |
|
Because the sysusers.d file is machine-parseable thus could be used in a nixos test for instance. (I mean, ideally we'd just use the file directly to avoid this kind of problems, but it probably sounds kind of hard to fit into our passwd/shadow generator). |
I could try to write a test case for |
I don't think there is need for test right now. Issue isn't show-stopper. |
Yeah I agree, there's no real pressure for writing the test. Just something handy to have when we update systemd the next time, but that's likely not going to happen in months. |
Is there something I still need to do, to get this merged? If it is unwanted change, please tell me, so I can close the pull request. |
Sorry this fell through the cracks. Applied now. |
they need to exist according to the README of systemd
Motivation for this change
Fix #45071
Things done
Added groups render and kvm
sandbox
innix.conf
on non-NixOS)nixos/tests/misc.nix
nixos/tests/systemd.nix
nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)