git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41829 from volth/patch-151

nixos/initrd-network: support hetzner

commita1f226b78b5e6ed383aa584d71044fd5cf53753b authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 11 Jun 2018, 15:58 (8 years ago) parent1b452e44c33528
1 file changed+1
nixos/modules/system/boot/initrd-network.nix+1
nixos/modules/system/boot/initrd-network.nix+1
@@ -12,6 +12,7 @@ let
1212 if [ "$1" = bound ]; then
1313 ip address add "$ip/$mask" dev "$interface"
1414 if [ -n "$router" ]; then
15+ ip route add "$router" dev "$interface" # just in case if "$router" is not within "$ip/$mask" (e.g. Hetzner Cloud)
1516 ip route add default via "$router" dev "$interface"
1617 fi
1718 if [ -n "$dns" ]; then