about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-12-28 12:36:27 +0000
committerGitHub <noreply@github.com>2022-12-28 12:36:27 +0000
commitd165c5dcad1734ea948e3b8554f6ae84a1a71780 (patch)
tree44ecc2fe37f217253d28dd7f532e09a5e6ffbadc /nixos/modules/system
parent2b5f8c67f7631676a3e4e264915a46ebc054173d (diff)
parent9f874dd95e4375a86daa4dc5251fa79de890ab5b (diff)
Merge pull request #204254 from raphaelr/initrd-openvpn
nixos/tests/initrd-network-openvpn: fix
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/initrd-openvpn.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/initrd-openvpn.nix b/nixos/modules/system/boot/initrd-openvpn.nix
index b41e7524320e2..cbc61d55d6bb3 100644
--- a/nixos/modules/system/boot/initrd-openvpn.nix
+++ b/nixos/modules/system/boot/initrd-openvpn.nix
@@ -68,11 +68,8 @@ in
       $out/bin/openvpn --show-gateway
     '';
 
-    # Add `iproute /bin/ip` to the config, to ensure that openvpn
-    # is able to set the routes
     boot.initrd.network.postCommands = ''
-      (cat /etc/initrd.ovpn; echo -e '\niproute /bin/ip') | \
-        openvpn /dev/stdin &
+      openvpn /etc/initrd.ovpn &
     '';
   };