Merge pull request #285411 from NickCao/networkd-stage1

nixos/networkd: drop upstreamed stage-1 unit dependencies
This commit is contained in:
Will Fancher 2024-02-01 20:35:17 -05:00 committed by GitHub
commit 8c1a6046a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2989,15 +2989,9 @@ let
systemd.services.systemd-networkd = {
wantedBy = [ "initrd.target" ];
# These before and conflicts lines can be removed when this PR makes it into a release:
# https://github.com/systemd/systemd/pull/27791
before = ["initrd-switch-root.target"];
conflicts = ["initrd-switch-root.target"];
};
systemd.sockets.systemd-networkd = {
wantedBy = [ "initrd.target" ];
before = ["initrd-switch-root.target"];
conflicts = ["initrd-switch-root.target"];
};
systemd.services.systemd-network-generator.wantedBy = [ "sysinit.target" ];