mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: zfs: Correct ZFS udev rules.
* gnu/packages/file-systems.scm (zfs): Add substitutions for /sbin/modprobe in udev rules. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
c64adff4c6
commit
849e3dd043
1 changed files with 6 additions and 2 deletions
|
@ -885,7 +885,8 @@ (define-public zfs
|
|||
(let ((out (assoc-ref outputs "out"))
|
||||
(src (assoc-ref outputs "src"))
|
||||
(util-linux (assoc-ref inputs "util-linux"))
|
||||
(nfs-utils (assoc-ref inputs "nfs-utils")))
|
||||
(nfs-utils (assoc-ref inputs "nfs-utils"))
|
||||
(kmod (assoc-ref inputs "kmod-runtime")))
|
||||
(substitute* "contrib/Makefile.in"
|
||||
;; This is not configurable nor is its hard-coded /usr prefix.
|
||||
((" initramfs") ""))
|
||||
|
@ -915,7 +916,9 @@ (define-public zfs
|
|||
(substitute* "contrib/pyzfs/Makefile.in"
|
||||
((".*install-lib.*") ""))
|
||||
(substitute* '("Makefile.am" "Makefile.in")
|
||||
(("\\$\\(prefix)/src") (string-append src "/src"))))
|
||||
(("\\$\\(prefix)/src") (string-append src "/src")))
|
||||
(substitute* (find-files "udev/rules.d/" ".rules.in$")
|
||||
(("/sbin/modprobe") (string-append kmod "/bin/modprobe"))))
|
||||
#t))
|
||||
(replace 'build
|
||||
(lambda _ (invoke "make")))
|
||||
|
@ -939,6 +942,7 @@ (define-public zfs
|
|||
("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
`(("eudev" ,eudev)
|
||||
("kmod-runtime" ,kmod)
|
||||
("libaio" ,libaio)
|
||||
("libtirpc" ,libtirpc)
|
||||
("nfs-utils" ,nfs-utils)
|
||||
|
|
Loading…
Reference in a new issue