summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2019-10-21 11:46:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-23 16:30:36 +0100
commit64a684611f49b7b134f22b839fb0acdbba0a8b91 (patch)
tree04758f8a0836aee73c5c3cb54a2cb54eea77504c /meta/recipes-connectivity/connman
parentdcf52753abcf494f70323140a5d276228e260c91 (diff)
downloadpoky-64a684611f49b7b134f22b839fb0acdbba0a8b91.tar.gz
connman: mark connman-wait-online as SYSTEMD_PACKAGE
The connman-wait-online package currently isn't marked as systemd-enabled package. This means it is impossible to auto-enable the service during image creation or package installation, as no preset files and no pkg_postinst() snippet is being created. This change should have been done as part of the upgrade to v1.31 Note: connman-wait-online is needed when connman is in use in more complex network/interface setups for systemd's network-online.target to report success. systemd-networkd's systemd-networkd-wait-online.service alone doesn't work in such scenarios and simply times out, as it know nothing about the expected network/ interface configuration, meaning the target doesn't boot successfully (systemctl list-units --failed), and long delays are seen, caused by waiting for the systemd-networkd-wait-online.service timeout. (From OE-Core rev: 1a8d18eeee6dc188d8becc778bfa933031490781) Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index ee00479926..fb38ab4fc1 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -59,7 +59,7 @@ INITSCRIPT_NAME = "connman"
59INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." 59INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
60 60
61python __anonymous () { 61python __anonymous () {
62 systemd_packages = "${PN}" 62 systemd_packages = "${PN} ${PN}-wait-online"
63 pkgconfig = d.getVar('PACKAGECONFIG') 63 pkgconfig = d.getVar('PACKAGECONFIG')
64 if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split(): 64 if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
65 systemd_packages += " ${PN}-vpn" 65 systemd_packages += " ${PN}-vpn"