From d9bcb56f5fcb6f5cfdb9ea66f6fbdc603e04ca73 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 3 Jan 2025 21:58:04 -0600 Subject: [PATCH] Don't wait for online in (#44) With https://github.com/PhotonVision/photonvision/pull/1672, the network handling is more robust. It should be OK to not wait for NetworkManager to detect online during the boot process. This will speed bootup, especially first boot if the system isn't connected to a network. --- install_opi5.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 0b5280e..b672b5e 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -52,11 +52,6 @@ cp -f ./OPi5_CIDATA/user-data /boot/user-data # modify photonvision.service to enable big cores sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' /lib/systemd/system/photonvision.service - -# modify photonvision.service to wait for the network before starting -# this helps ensure that photonvision detects the network the first time it starts -# but it may cause a startup delay if the coprocessor isn't connected to a network -sed -i '/Description/aAfter=network-online.target' /lib/systemd/system/photonvision.service cp -f /lib/systemd/system/photonvision.service /etc/systemd/system/photonvision.service chmod 644 /etc/systemd/system/photonvision.service cat /etc/systemd/system/photonvision.service @@ -64,6 +59,9 @@ cat /etc/systemd/system/photonvision.service # networkd isn't being used, this causes an unnecessary delay systemctl disable systemd-networkd-wait-online.service +# PhotonVision server is managing the network, so it doesn't need to wait for online +systemctl disable NetworkManager-wait-online.service + # the bluetooth service isn't needed and causes problems with cloud-init # the chip has different names on different boards. Examples are: # OrangePi5: ap6275p-bluetooth.service