summaryrefslogtreecommitdiff
path: root/stretch-arm64-alip
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-12-14 10:46:40 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-12-14 10:46:40 +0200
commit04072c357247ae321a9f9042a47a1cfb9af0446c (patch)
treea9779bb25b652090a5226af1d50b18d968a0a8a5 /stretch-arm64-alip
parentb3596430316c4517433547dd1c22b83f6c77b894 (diff)
stretch: add workaround for 90s delay to wait for devices to be online
Until we have a proper fix, use this workaround to avoid hitting 90s timeout. Change-Id: Iffa8ef2b3977da533e50161645f21d3395923f2e Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'stretch-arm64-alip')
-rwxr-xr-xstretch-arm64-alip/customization/hooks/22-disable-systemd-services.chroot9
1 files changed, 9 insertions, 0 deletions
diff --git a/stretch-arm64-alip/customization/hooks/22-disable-systemd-services.chroot b/stretch-arm64-alip/customization/hooks/22-disable-systemd-services.chroot
new file mode 100755
index 0000000..35f609f
--- /dev/null
+++ b/stretch-arm64-alip/customization/hooks/22-disable-systemd-services.chroot
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# workaround 90s delay
+services=(NetworkManager systemd-networkd)
+for service in ${services[@]}; do
+ systemctl disable ${service}-wait-online.service
+done
+
+ln -sf /dev/null /etc/systemd/system/multi-user.target.wants/wpa_supplicant@.service