Use the upstream (but patched) sysinit.target
This commit is contained in:
parent
827e3dadc8
commit
948dd8dd1a
@ -23,7 +23,7 @@ let
|
|||||||
upstreamUnits =
|
upstreamUnits =
|
||||||
[ # Targets.
|
[ # Targets.
|
||||||
"basic.target"
|
"basic.target"
|
||||||
#"sysinit.target"
|
"sysinit.target"
|
||||||
"sockets.target"
|
"sockets.target"
|
||||||
"graphical.target"
|
"graphical.target"
|
||||||
"multi-user.target"
|
"multi-user.target"
|
||||||
@ -524,17 +524,6 @@ in
|
|||||||
{ description = "Security Keys";
|
{ description = "Security Keys";
|
||||||
};
|
};
|
||||||
|
|
||||||
# This is like the upstream sysinit.target, except that it doesn't
|
|
||||||
# depend on local-fs.target and swap.target. If services need to
|
|
||||||
# be started after some filesystem (local or otherwise) has been
|
|
||||||
# mounted, they should use the RequiresMountsFor option.
|
|
||||||
boot.systemd.targets.sysinit =
|
|
||||||
{ description = "System Initialization";
|
|
||||||
after = [ "emergency.service" "emergency.target" ];
|
|
||||||
unitConfig.Conflicts = "emergency.service emergency.target";
|
|
||||||
unitConfig.RefuseManualStart = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.systemd.units =
|
boot.systemd.units =
|
||||||
{ "rescue.service".text = rescueService; }
|
{ "rescue.service".text = rescueService; }
|
||||||
// mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
|
// mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user