Add a target ‘fs.target’ that waits for all filesystems

This commit is contained in:
Eelco Dolstra 2012-08-14 18:14:16 -04:00
parent 11c3219c1c
commit 55b2736566

View file

@ -150,6 +150,13 @@ let
KillSignal=SIGHUP
'';
fsTarget =
''
[Unit]
Description=All File Systems
Wants=local-fs.target remote-fs.target
'';
makeJobScript = name: content: "${pkgs.writeScriptBin name content}/bin/${name}";
serviceConfig = { name, config, ... }: {
@ -328,6 +335,7 @@ in
boot.systemd.units =
{ "rescue.service".text = rescueService; }
// { "fs.target" = { text = fsTarget; wantedBy = [ "multi-user.target" ]; }; }
// mapAttrs serviceToUnit cfg.services;
};