diff --git a/packages/omamobile-device-cheetah/test/all b/packages/omamobile-device-cheetah/test/all index 695081b94..4736702a5 100755 --- a/packages/omamobile-device-cheetah/test/all +++ b/packages/omamobile-device-cheetah/test/all @@ -75,3 +75,11 @@ grep -qx '\[Login\]' "$power" || fail "the power-key drop-in needs a [Login] hea grep -qx 'HandlePowerKey=ignore' "$power" || fail "a short press must not power the phone off" grep -qx 'HandlePowerKeyLongPress=ignore' "$power" || fail "the long press stays the PMIC reset" pass "install stages the package" + +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" diff --git a/packages/omamobile-device-cheetah/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-cheetah/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..973c61db7 100644 --- a/packages/omamobile-device-cheetah/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-cheetah/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-cheetah/version b/packages/omamobile-device-cheetah/version index 9dd179330..a52e04166 100644 --- a/packages/omamobile-device-cheetah/version +++ b/packages/omamobile-device-cheetah/version @@ -1 +1 @@ -0.1.34 +0.1.35 diff --git a/packages/omamobile-device-felix/test/all b/packages/omamobile-device-felix/test/all index c665daaeb..b6641e88c 100755 --- a/packages/omamobile-device-felix/test/all +++ b/packages/omamobile-device-felix/test/all @@ -100,3 +100,11 @@ for absent in usr/bin/omamobile-boot-success usr/bin/omamobile-bootctl \ [[ ! -e $tmp/root/$absent ]] || fail "install includes $absent" done pass "install stages the udev rule, the USB link, and the mirrorlist, and nothing that marks a slot or starts hardware" + +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (seen on raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" diff --git a/packages/omamobile-device-felix/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-felix/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..a3050f612 100644 --- a/packages/omamobile-device-felix/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-felix/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (seen on raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-felix/version b/packages/omamobile-device-felix/version index 845639eef..9faa1b7a7 100644 --- a/packages/omamobile-device-felix/version +++ b/packages/omamobile-device-felix/version @@ -1 +1 @@ -0.1.4 +0.1.5 diff --git a/packages/omamobile-device-husky/test/all b/packages/omamobile-device-husky/test/all index 9e380df01..cc380d15e 100755 --- a/packages/omamobile-device-husky/test/all +++ b/packages/omamobile-device-husky/test/all @@ -89,3 +89,11 @@ pass "install stages the udev rule, the USB link, and the mirrorlist, and nothin [[ ! -e $tmp/root/usr/lib/systemd/logind.conf.d/10-omamobile-lid.conf ]] \ || fail "husky has no lid: no lid drop-in" pass "no lid drop-in" + +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (seen on raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" diff --git a/packages/omamobile-device-husky/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-husky/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..a3050f612 100644 --- a/packages/omamobile-device-husky/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-husky/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (seen on raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-husky/version b/packages/omamobile-device-husky/version index 6e8bf73aa..17e51c385 100644 --- a/packages/omamobile-device-husky/version +++ b/packages/omamobile-device-husky/version @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/packages/omamobile-device-lynx/test/all b/packages/omamobile-device-lynx/test/all index 48cea51fd..0df95a6de 100755 --- a/packages/omamobile-device-lynx/test/all +++ b/packages/omamobile-device-lynx/test/all @@ -119,3 +119,11 @@ for absent in usr/bin/omamobile-wifi-start usr/bin/omamobile-charge-guard \ [[ ! -e $tmp/root/$absent ]] || fail "install includes $absent" done pass "install stages the udev rule, the USB link, the mirrorlist, and the boot-success marker, and nothing that starts hardware" + +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (seen on raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" diff --git a/packages/omamobile-device-lynx/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-lynx/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..a3050f612 100644 --- a/packages/omamobile-device-lynx/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-lynx/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (seen on raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-lynx/version b/packages/omamobile-device-lynx/version index 0ea3a944b..0c62199f1 100644 --- a/packages/omamobile-device-lynx/version +++ b/packages/omamobile-device-lynx/version @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/packages/omamobile-device-panther/test/all b/packages/omamobile-device-panther/test/all index 6f5fccb27..4f9c837c8 100755 --- a/packages/omamobile-device-panther/test/all +++ b/packages/omamobile-device-panther/test/all @@ -106,3 +106,10 @@ for absent in usr/bin/omamobile-boot-success usr/bin/omamobile-bootctl \ [[ ! -e $tmp/root/$absent ]] || fail "install includes $absent" done pass "install stages the udev rules, the USB link, and the mirrorlist, and nothing that marks a slot or starts hardware" +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (seen on raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" diff --git a/packages/omamobile-device-panther/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-panther/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..a3050f612 100644 --- a/packages/omamobile-device-panther/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-panther/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (seen on raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-panther/version b/packages/omamobile-device-panther/version index 17e51c385..d917d3e26 100644 --- a/packages/omamobile-device-panther/version +++ b/packages/omamobile-device-panther/version @@ -1 +1 @@ -0.1.1 +0.1.2 diff --git a/packages/omamobile-device-raven/test/all b/packages/omamobile-device-raven/test/all index c38535f76..ccbe7d459 100755 --- a/packages/omamobile-device-raven/test/all +++ b/packages/omamobile-device-raven/test/all @@ -108,6 +108,13 @@ for m in pcie_gs201_cp cpif shm_ipc boot_device_spi; do done pass "the modem's drivers never load at boot" +# USB is the last gateway: its route outlives an unplug, so ahead of Wi-Fi +# it sent IPv4 into a dead cable (raven, 2026-10-28). +net=vendor/systemd/network/20-usb-gadget.network +! sed -n '/^\[Network\]/,/^\[/p' "$net" | grep -q '^Gateway=' || fail "usb0 sets no default route in [Network] (metric 0)" +metric=$(sed -n '/^\[Route\]/,/^\[/{s/^Metric=//p}' "$net") +[[ ${metric:-0} -gt 700 ]] || fail "usb0's gateway goes after Wi-Fi (600) and mobile data (700)" +pass "USB is the last gateway" # Haptics: feedbackd only finds the motor when it starts, and the motor # appears ~5 s into the boot (its firmware): the rule restarts a feedbackd # that came first. diff --git a/packages/omamobile-device-raven/vendor/systemd/network/20-usb-gadget.network b/packages/omamobile-device-raven/vendor/systemd/network/20-usb-gadget.network index 4e30191f6..973c61db7 100644 --- a/packages/omamobile-device-raven/vendor/systemd/network/20-usb-gadget.network +++ b/packages/omamobile-device-raven/vendor/systemd/network/20-usb-gadget.network @@ -2,13 +2,21 @@ # Omarchy Mobile: USB networking to the host. The initramfs sets up the USB # gadget (CDC NCM) before handing over to Arch; this gives it an address. # The host shares its internet over this link (NetworkManager "shared" -# mode on 172.16.42.2), so it is also the gateway. DNS goes to public resolvers. +# mode on 172.16.42.2), so it is also a gateway, the last one: Wi-Fi (600) +# and mobile data (700) go first. ConfigureWithoutCarrier keeps this route +# after an unplug (and usb0 keeps its carrier anyway), so at metric 0 IPv4 +# went into the dead cable once the phone left the desk: IPv4-only sites +# such as github.com failed on Wi-Fi while IPv6 ones loaded (raven, +# 2026-10-28). DNS goes to public resolvers. [Match] Name=usb0 [Network] Address=172.16.42.1/24 -Gateway=172.16.42.2 DNS=1.1.1.1 DNS=9.9.9.9 ConfigureWithoutCarrier=yes + +[Route] +Gateway=172.16.42.2 +Metric=2000 diff --git a/packages/omamobile-device-raven/version b/packages/omamobile-device-raven/version index a2e1aa9d9..baec65a93 100644 --- a/packages/omamobile-device-raven/version +++ b/packages/omamobile-device-raven/version @@ -1 +1 @@ -0.1.27 +0.1.28