mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23: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
|
let
|
||||||
subvolMounts = lib.concatMapAttrs
|
subvolMounts = lib.concatMapAttrs
|
||||||
(_: subvol:
|
(_: 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) {
|
lib.optionalAttrs (subvol.mountpoint != null) {
|
||||||
${subvol.mountpoint} = ''
|
${subvol.mountpoint} = ''
|
||||||
if ! findmnt ${config.device} "${rootMountPoint}${subvol.mountpoint}" > /dev/null 2>&1; then
|
if ! findmnt ${config.device} "${rootMountPoint}${subvol.mountpoint}" > /dev/null 2>&1; then
|
||||||
|
|||||||
Reference in new issue
Block a user