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
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