]> Git — Sourcephile - sourcephile-nix.git/blob - nixpkgs/patches/fix-flushBeforeStage2.diff
environment: add networking tools
[sourcephile-nix.git] / nixpkgs / patches / fix-flushBeforeStage2.diff
1 diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix
2 index 0ab6e626b34..ec794d6eb01 100644
3 --- a/nixos/modules/system/boot/initrd-network.nix
4 +++ b/nixos/modules/system/boot/initrd-network.nix
5 @@ -139,7 +139,7 @@ in
6 boot.initrd.postMountCommands = mkIf cfg.flushBeforeStage2 ''
7 for iface in $ifaces; do
8 ip address flush "$iface"
9 - ip link down "$iface"
10 + ip link set "$iface" down
11 done
12 '';
13