mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
libvirt: Fix broken when Kernel differs b/w current- and booted-system
Libvirt checks this path + $(uname -r), which is the running Kernel.
current-system does not necessarily contain the running Kernel, but
booted-system does.
Broken in ad78ce7764
, which ignored the
discussion in https://github.com/NixOS/nixpkgs/pull/286330. It is still
broken on non-NixOS Linux.
This commit is contained in:
parent
61950db5f8
commit
df966328e0
@ -251,7 +251,7 @@ stdenv.mkDerivation rec {
|
||||
--replace '"/usr/bin/pkttyagent"' '"${if isLinux then polkit.bin else "/usr"}/bin/pkttyagent"'
|
||||
|
||||
substituteInPlace src/util/virpci.c \
|
||||
--replace '/lib/modules' '${if isLinux then "/run/current-system/kernel-modules" else ""}/lib/modules'
|
||||
--replace '/lib/modules' '${if isLinux then "/run/booted-system/kernel-modules" else ""}/lib/modules'
|
||||
|
||||
patchShebangs .
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user