Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/omamobile-device-cheetah/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-cheetah/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.34
0.1.35
8 changes: 8 additions & 0 deletions packages/omamobile-device-felix/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-felix/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.4
0.1.5
8 changes: 8 additions & 0 deletions packages/omamobile-device-husky/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-husky/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
8 changes: 8 additions & 0 deletions packages/omamobile-device-lynx/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-lynx/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
7 changes: 7 additions & 0 deletions packages/omamobile-device-panther/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-panther/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
7 changes: 7 additions & 0 deletions packages/omamobile-device-raven/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/omamobile-device-raven/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.27
0.1.28