mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
nixos/ifstate: remove initrd default dependencies
This commit is contained in:
@@ -176,6 +176,11 @@ in
|
||||
"network.target"
|
||||
];
|
||||
|
||||
unitConfig = {
|
||||
# Avoid default dependencies like "basic.target", which prevents ifstate from starting before luks is unlocked.
|
||||
DefaultDependencies = "no";
|
||||
};
|
||||
|
||||
# mount is always available on nixos, avoid adding additional store paths to the closure
|
||||
path = [ "/run/wrappers" ];
|
||||
|
||||
@@ -291,6 +296,11 @@ in
|
||||
"network.target"
|
||||
];
|
||||
|
||||
unitConfig = {
|
||||
# Avoid default dependencies like "basic.target", which prevents ifstate from starting before luks is unlocked.
|
||||
DefaultDependencies = "no";
|
||||
};
|
||||
|
||||
# mount is always available on nixos, avoid adding additional store paths to the closure
|
||||
# https://github.com/NixOS/nixpkgs/blob/2b8e2457ebe576ebf41ddfa8452b5b07a8d493ad/nixos/modules/system/boot/systemd/initrd.nix#L550-L551
|
||||
path = [
|
||||
|
||||
Reference in New Issue
Block a user