libvirt: Use valid runstatedir for Darwin
Some use cases require libvirtd to be run as root on MacOS due to https://gitlab.com/qemu-project/qemu/-/issues/465 Running libvirtd as root uses runstatedir for the pid, but /run is not a valid or standard path on MacOS.
This commit is contained in:
committed by
Weijia Wang
parent
9ce47d84cd
commit
0eed0f1309
@@ -271,7 +271,7 @@ stdenv.mkDerivation rec {
|
||||
"--sysconfdir=/var/lib"
|
||||
(cfg "install_prefix" (placeholder "out"))
|
||||
(cfg "localstatedir" "/var")
|
||||
(cfg "runstatedir" "/run")
|
||||
(cfg "runstatedir" (if isDarwin then "/var/run" else "/run"))
|
||||
|
||||
(cfg "init_script" (if isDarwin then "none" else "systemd"))
|
||||
(cfg "qemu_datadir" (lib.optionalString isDarwin "${qemu}/share/qemu"))
|
||||
|
||||
Reference in New Issue
Block a user