(address . bug-guix@gnu.org)
I'm trying to setup Mergerfs in Guix,
Mergefs works with normal fstab configuration like:
Toggle snippet (4 lines)
UUID=30393ca8-.......... /mnt/media1 ext4 defaults
/mnt/media1 /mnt/raid/ mergerfs defaults,cache.files=partial,dropcacheonclose=true,category.create=pfrd
But also support glob
Toggle snippet (3 lines)
/mnt/media* /mnt/raid/ mergerfs defaults,...
and Guix is adding the fstab configuration fine (after reconfigure), but
I get an error in `guix reconfigure` and is not mounting it.
Toggle snippet (4 lines)
guix system: warning: exception caught while executing 'start' on service 'file-system-/mnt/raid':
In procedure mount: mount "/mnt/media1" on "///mnt/raid": No such device
`herd status`:
Toggle snippet (4 lines)
Failed to start:
! file-system-/mnt/raid
this is my file-system configuration
Toggle snippet (9 lines)
(define margerfs-mapped-device
(list (file-system
(mount-point "/mnt/media1")
(device (uuid
"30393ca8-..." 'ext4))
(type "ext4"))))
Toggle snippet (17 lines)
(file-systems (cons*
;; more disks...
;; mergerfs
(file-system
(device "/mnt/media1")
(mount-point "/mnt/raid")
(dependencies margerfs-mapped-device)
(options "defaults,cache.files=partial,dropcacheonclose=true,category.create=pfrd")
(type "mergerfs")
;(mount-may-fail? #t)
;(create-mount-point? #t)
(check? #f))
(append
margerfs-mapped-device
%base-file-systems)))
Right now I'm just mapping one disk "/mnt/media1/", with "/mnt/media*" or
"/mnt/media1:/mnt/media2" does not work either (and I expected to not
work with that custom mergefs way), mounting manually works fine, or
after the reconfigure with `sudo mount -a`
I guess this is a perfect use case for mapping-devices but mergerfs is
not implemented for mapping in guix yet.
Why the most simple use case that should work is not working?