From a7439821bc5494312cc9a480c7362245cc8ad4d3 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sun, 2 Aug 2020 09:00:11 +0200 Subject: [PATCH] initrd-network: fix flushBeforeStage2 --- nixos/modules/system/boot/initrd-network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix index 0ab6e626b340..ec794d6eb014 100644 --- a/nixos/modules/system/boot/initrd-network.nix +++ b/nixos/modules/system/boot/initrd-network.nix @@ -139,7 +139,7 @@ in boot.initrd.postMountCommands = mkIf cfg.flushBeforeStage2 '' for iface in $ifaces; do ip address flush "$iface" - ip link down "$iface" + ip link set "$iface" down done '';