[PATCH] img/app: only set known interfaces to up
Linux 7.1-rc1 defaults IPV6_SIT to built-in, which means a sit0 device always exists. (I think this is unintentional and have sent a patch to change it back to a module by default[1].) Depending on which interface, sit0 or the eth0 connected to the router, comes up first, networking may end up not working. Make our interface handling more robust by only bringing the interfaces from the router up, rather than all interfaces unconditionally. Link: https://lore.kernel.org/netdev/20260503165714.1477819-1-hi@alyssa.is/ [1] Fixes: 88f2695c ("Initial commit") Signed-off-by: Alyssa Ross <hi@alyssa.is> --- Not sure whether maybe it would be a good idea to check type = 1 (ARPHRD_ETHER) as well? img/app/image/etc/mdev/iface | 1 + 1 file changed, 1 insertion(+) diff --git a/img/app/image/etc/mdev/iface b/img/app/image/etc/mdev/iface index 67eee84f..55ec160c 100755 --- a/img/app/image/etc/mdev/iface +++ b/img/app/image/etc/mdev/iface @@ -4,5 +4,6 @@ background { importas -Si INTERFACE + if { grep -q ^02:00: /sys/class/net/${INTERFACE}/address } ip link set $INTERFACE up } base-commit: ea05e3e48816037e442e6ee8205f924191c9634c -- 2.53.0
This patch has been committed as 5b3151fd08d1f1e3e166a328449fe6fe5092f316, which can be viewed online at https://spectrum-os.org/git/spectrum/commit/?id=5b3151fd08d1f1e3e166a328449f.... This is an automated message. Send comments/questions/requests to: Alyssa Ross <hi@alyssa.is>
participants (2)
-
Alyssa Ross -
Alyssa Ross