nixos/apparmor: order before sysinit.target
Otherwise, profiles may be loaded way too late in the init process.
This commit is contained in:
parent
dfd8f84aef
commit
f824dad19a
@ -33,7 +33,12 @@ in
|
|||||||
paths = concatMapStrings (s: " -I ${s}/etc/apparmor.d")
|
paths = concatMapStrings (s: " -I ${s}/etc/apparmor.d")
|
||||||
([ pkgs.apparmor-profiles ] ++ cfg.packages);
|
([ pkgs.apparmor-profiles ] ++ cfg.packages);
|
||||||
in {
|
in {
|
||||||
wantedBy = [ "local-fs.target" ];
|
after = [ "local-fs.target" ];
|
||||||
|
before = [ "sysinit.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
unitConfig = {
|
||||||
|
DefaultDependencies = "no";
|
||||||
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user