mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
fix(btrfs): add warning for subvolume mounts
This commit is contained in:
1 parent
ada1a01892
commit
818207b99b
1 file changed
+2
@@ -91,6 +91,8 @@
|
||||
let
|
||||
subvolMounts = lib.concatMapAttrs
|
||||
(_: subvol:
|
||||
lib.warnIf (subvol.mountOptions != (options.subvolumes.type.getSubOptions []).mountOptions.default && subvol.mountpoint == null)
|
||||
"Subvolume ${subvol.name} has mountOptions but no mountpoint. See upgrade guide (2023-07-09 121df48)."
|
||||
lib.optionalAttrs (subvol.mountpoint != null) {
|
||||
${subvol.mountpoint} = ''
|
||||
if ! findmnt ${config.device} "${rootMountPoint}${subvol.mountpoint}" > /dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user