git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: tasks/fileSystems: cleanup
commit2c8ca0d1bd1df838b3e3b2d2e17c6855b3b520c1 authorJan Malakhovski <oxij@oxij.org> dateWed 25 Nov 2015, 19:09 (11 years ago) parent1266852
1 file changed+7−6
nixos/modules/tasks/filesystems.nix+7−6
nixos/modules/tasks/filesystems.nix+7−6
@@ -208,14 +208,15 @@ in
208208
209209 formatDevice = fs:
210210 let
211− mountPoint' = escapeSystemdPath fs.mountPoint;
212− device' = escapeSystemdPath fs.device;
211+ mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
212+ device' = escapeSystemdPath fs.device;
213+ device'' = "${device}.device";
213214 in nameValuePair "mkfs-${device'}"
214215 { description = "Initialisation of Filesystem ${fs.device}";
215− wantedBy = [ "${mountPoint'}.mount" ];
216− before = [ "${mountPoint'}.mount" "systemd-fsck@${device'}.service" ];
217− requires = [ "${device'}.device" ];
218− after = [ "${device'}.device" ];
216+ wantedBy = [ mountPoint' ];
217+ before = [ mountPoint' "systemd-fsck@${device'}.service" ];
218+ requires = [ device'' ];
219+ after = [ device'' ];
219220 path = [ pkgs.utillinux ] ++ config.system.fsPackages;
220221 script =
221222 ''