mirror of
https://github.com/nix-community/disko.git
synced 2026-01-15 10:48:38 +01:00
fix(btrfs): add warning for subvolume mounts
This commit is contained in:
parent
ada1a01892
commit
818207b99b
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue