Order mkfs services before the corresponding fsck services

This commit is contained in:
Eelco Dolstra 2012-10-31 14:49:09 +01:00
parent 1860badbeb
commit dd7edefb2c

View File

@ -188,7 +188,7 @@ in
in nameValuePair "mkfs-${device'}" in nameValuePair "mkfs-${device'}"
{ description = "Initialisation of Filesystem ${fs.device}"; { description = "Initialisation of Filesystem ${fs.device}";
wantedBy = [ "${mountPoint'}.mount" ]; wantedBy = [ "${mountPoint'}.mount" ];
before = [ "${mountPoint'}.mount" ]; before = [ "${mountPoint'}.mount" "systemd-fsck@${device'}.service" ];
require = [ "${device'}.device" ]; require = [ "${device'}.device" ];
after = [ "${device'}.device" ]; after = [ "${device'}.device" ];
path = [ pkgs.utillinux ] ++ config.system.fsPackages; path = [ pkgs.utillinux ] ++ config.system.fsPackages;