Skip to content

gocryptfs: stop depending on fuse - #527732

Merged
flokli merged 2 commits into
NixOS:masterfrom
flokli:gocryptfs-patch-fusermount-path
Jun 5, 2026
Merged

flokli merged 2 commits into
NixOS:masterfrom
flokli:gocryptfs-patch-fusermount-path

Conversation

@flokli

@flokli flokli commented Jun 3, 2026

Copy link
Copy Markdown
Member

Part of #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 #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 #526670.

Things done

prusnak and others added 2 commits June 3, 2026 22:49
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.
Sometimes files take a bit to appear.
Wait for the file to be present to not run into this.
@flokli
flokli requested review from a-kenji and prusnak June 3, 2026 21:01
@flokli flokli mentioned this pull request Jun 3, 2026
14 tasks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Jun 3, 2026
@mweinelt mweinelt mentioned this pull request Jun 5, 2026
9 of 20 tasks
@a-kenji

a-kenji commented Jun 5, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 527732 --package nixosTests.gocryptfs
Commit: 063b1b777bbb0edae739e07e5aa1cc9b8881f508


x86_64-linux

✅ 1 test built:
  • nixosTests.gocryptfs

@a-kenji a-kenji left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Didn't test the binary. Ran the test.

Edit: Ah, accidentally used --packages, instead of --additional-packages. Tested the binary now as well.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 5, 2026
@a-kenji

a-kenji commented Jun 5, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 527732 --additional-package nixosTests.gocryptfs
Commit: 063b1b777bbb0edae739e07e5aa1cc9b8881f508


x86_64-linux

✅ 1 test built:
  • nixosTests.gocryptfs
✅ 7 packages built:
  • backintime
  • backintime-common
  • cryptor
  • gocryptfs
  • kdePackages.plasma-vault
  • sirikali
  • vaults

@flokli
flokli added this pull request to the merge queue Jun 5, 2026
Merged via the queue into NixOS:master with commit a3fc1d9 Jun 5, 2026
51 checks passed
@flokli
flokli deleted the gocryptfs-patch-fusermount-path branch June 5, 2026 21:47
@BatteredBunny BatteredBunny mentioned this pull request Jul 20, 2026
5 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants