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:
raid5atemyhomework 2021-01-08 05:31:17 +00:00 committed by Efraim Flashner
parent c64adff4c6
commit 849e3dd043
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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)