We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0c35d commit 814bbefCopy full SHA for 814bbef
nixos/modules/tasks/filesystems/bcachefs.nix
@@ -97,7 +97,15 @@ let
97
deviceUnit = mkDeviceUnit device;
98
extractProperty =
99
prop: options: (map (lib.removePrefix "${prop}=") (builtins.filter (lib.hasPrefix prop) options));
100
- normalizeUnits = unit: if lib.hasPrefix "/" unit then mkDeviceUnit unit else unit;
+ mkMountUnit = path: "${utils.escapeSystemdPath path}.mount";
101
+ normalizeUnits =
102
+ unit:
103
+ if lib.hasPrefix "/dev/" unit then
104
+ mkDeviceUnit unit
105
+ else if lib.hasPrefix "/" unit then
106
+ mkMountUnit unit
107
+ else
108
+ unit;
109
requiredUnits = map normalizeUnits (extractProperty "x-systemd.requires" fs.options);
110
wantedUnits = map normalizeUnits (extractProperty "x-systemd.wants" fs.options);
111
in
0 commit comments