nixos/initrd-network: support hetzner
commit4c3352896edb398ab29ce583a270ef3a8f2b905e
authorvolth <volth@volth.com>
dateMon 11 Jun 2018, 10:35 (8 years ago)
parented657a9
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