mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: mergerfs: Hard-code output path in mount.mergerfs.
This allows using mergerfs filesystems in /etc/fstab. * gnu/packages/file-systems.scm (mergerfs)[arguments]: Add clause to existing SUBSTITUTE*.
This commit is contained in:
parent
d3d3caeeeb
commit
b310afde26
1 changed files with 7 additions and 1 deletions
|
@ -1457,7 +1457,13 @@ (define-public mergerfs
|
|||
"mount"))))
|
||||
(substitute* '("libfuse/util/mount.mergerfs.c")
|
||||
(("/bin/sh" command)
|
||||
(string-append (assoc-ref inputs "bash-minimal") command))))))))
|
||||
(string-append (assoc-ref inputs "bash-minimal") command))
|
||||
;; mount.mergerfs tries to execute `mergerfs`, which cannot be found
|
||||
;; without an absolute path. Hard-coding the path is fine, since we don’t
|
||||
;; link mount.mergerfs to mount.fuse anyway.
|
||||
(("add_arg\\(&command, type\\);")
|
||||
(string-append "add_arg(&command, \"" (assoc-ref outputs "out")
|
||||
"/bin/mergerfs\");"))))))))
|
||||
;; Mergerfs bundles a heavily modified copy of fuse.
|
||||
(inputs
|
||||
(list bash-minimal util-linux))
|
||||
|
|
Loading…
Reference in a new issue