m/n/c/network: static networking fixes
This fixes three issues with static networking:
It joins interfaces to a master in down state as otherwise Linux
can return an error.
It takes up the automatically-created loopback interface as otherwise we
have no working loopback interface which causes some weird breakage.
It also patches netlink to use RTM_SETLINK instead of RTM_NEWLINK for
reconfiguring interfaces as otherwise Linux sometimes returns an error.
Change-Id: I512e38c6edc1a6d964feb552b1a3995165d74730
Reviewed-on: https://review.monogon.dev/c/monogon/+/1523
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index b58c990..c27a5ef 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -4935,6 +4935,7 @@
patches = [
# Going upstream as https://github.com/vishvananda/netlink/pull/850
"//third_party/go/patches:netlink-permhwaddr.patch",
+ "//third_party/go/patches:netlink-use-rtm_setlink.patch",
],
replace = "github.com/monogon-dev/netlink",
sum = "h1:y05BDqZ6q3if6pYBHJcnQRUd92ihzBEJde/S4fpKEAM=",