Skip to content

Commit

Permalink
Merge pull request #278537 from wfdewith/syncoid-permissions
Browse files Browse the repository at this point in the history
nixos/syncoid: add missing ZFS mount permission
  • Loading branch information
pbsds authored Mar 7, 2024
2 parents e4eb5b5 + de0a5c6 commit 5f96893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/backup/syncoid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ in
localSourceAllow = mkOption {
type = types.listOf types.str;
# Permissions snapshot and destroy are in case --no-sync-snap is not used
default = [ "bookmark" "hold" "send" "snapshot" "destroy" ];
default = [ "bookmark" "hold" "send" "snapshot" "destroy" "mount" ];
description = lib.mdDoc ''
Permissions granted for the {option}`services.syncoid.user` user
for local source datasets. See
Expand Down
3 changes: 3 additions & 0 deletions nixos/tests/sanoid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ in {
source.systemctl("start --wait syncoid-pool-sanoid.service")
target.succeed("cat /mnt/pool/sanoid/test.txt")
source.systemctl("start --wait syncoid-pool-syncoid.service")
source.systemctl("start --wait syncoid-pool-syncoid.service")
target.succeed("cat /mnt/pool/syncoid/test.txt")
assert(len(source.succeed("zfs list -H -t snapshot pool/syncoid").splitlines()) == 1), "Syncoid should only retain one sync snapshot"
source.systemctl("start --wait syncoid-pool.service")
target.succeed("[[ -d /mnt/pool/full-pool/syncoid ]]")
Expand Down

0 comments on commit 5f96893

Please sign in to comment.