Skip to content

Commit 72e424f

Browse files
committed
Propagate filesystem mountOptions to subvolumes
Make subvolume mountOptions also include options for the whole filesystem, but only when the filesystems mountpoint is not specified
1 parent 5a88a6e commit 72e424f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/types/bcachefs_filesystem.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
"X-mount.subdir=${lib.removePrefix "/" subvolume.name}"
320320
]
321321
++ subvolume.mountOptions
322+
++ lib.optional (config.mountpoint == null) config.mountOptions
322323
);
323324
neededForBoot = true;
324325
};

0 commit comments

Comments
 (0)