Repository navigation
gocryptfs: fuse -> fuse3 - #526670
gocryptfs: fuse -> fuse3#526670prusnak wants to merge 1 commit into
Conversation
|
I'm still not convinced this actually doesn't break fstab usage, the code seems to poke at the If everything is already handled in the library code as suggested in your comment on #526161:
... we wouldn't need to do anything with $PATH at all? Can you add a VM test? Creating a gocryptfs, then switching to a specialization that has that mountpoint in |
|
Here is the go-fuse change in 2021 which checks fusermount3 binary first, then fusermount hanwen/go-fuse@934a183 Not sure if the wrapper is still needed and I unfortunately have no time to test now (i don't use gocryptfs atm) |
Here's code in gocryptfs asking
Yeah, let's leave this open for the time being. Maybe someone will beat you or me towards testing it out. |
Yes, but that is only to determine whether I guess some distros package fusermount3 as fusermount and this check handles it in order not to pass |
|
I have tested both with and without the wrapper and both seem to work flawlessly |
The fstab testcase is what needs to be tested. |
|
I just successfully tested the fstab usecase locally aswell! |
And it works with and without the wrapper? |
|
testing without the wrapper, bash seems to fail to find gocryptfs, I wouldn't know why |
|
okay the unwrapped works with fsType = "fuse./run/current-system/sw/bin/gocryptfs", but not with "fuse.gocryptfs" |
Yeah. I figured;-) Maybe we can patch that path in. But this definitely needs a proper VM test to ensure it won't regress. |
|
added a VM test here: #526791 :) 👀 |
|
I have an updated version of this which doesn't break fstab mounts, will push later today |
|
Superseded by #527732. |
Part of NixOS#526161. The previous approach prefixed $PATH to make a fusermount available, but this would be gone if we'd just replace it to fuse3, as NixOS#526670 attempted (which would break mounting via fstab). Instead, patch the source to try our suid wrapper (which is always preferred so mounting as non-root still works), and then fallback to a fusermount from $PATH (to work on non-NixOS distros) Ideally this would also try fusermount3, but whether to do that is probably something for upstream to decide, and other distros probably also provide a symlink for compatibility reasons. Closes NixOS#526670.
Part of NixOS#526161. The previous approach prefixed $PATH to make a fusermount available, but this would be gone if we'd just replace it to fuse3, as NixOS#526670 attempted (which would break mounting via fstab). Instead, patch the source to try our suid wrapper (which is always preferred so mounting as non-root still works), and then fallback to a fusermount from $PATH (to work on non-NixOS distros) Ideally this would also try fusermount3, but whether to do that is probably something for upstream to decide, and other distros probably also provide a symlink for compatibility reasons. Closes NixOS#526670.
Part of #526161
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.