diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2012-10-19 16:04:44 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-10-19 16:04:44 +0200 |
commit | a58995b33e1bd3a5342441fde1815f0e4c8587f6 (patch) | |
tree | 00f75c113860569e95763a650e870df9b0be7029 /recipes-connectivity/connman | |
parent | efc8dc90a747451335a520ebfaaa6235be545228 (diff) |
connman.service: start the service only when the rootfs is not an NFS mount
Diffstat (limited to 'recipes-connectivity/connman')
-rw-r--r-- | recipes-connectivity/connman/connman/dont_start_connman_on_nfsboot.patch | 11 | ||||
-rw-r--r-- | recipes-connectivity/connman/connman_1.4.bbappend | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/recipes-connectivity/connman/connman/dont_start_connman_on_nfsboot.patch b/recipes-connectivity/connman/connman/dont_start_connman_on_nfsboot.patch new file mode 100644 index 0000000..6905166 --- /dev/null +++ b/recipes-connectivity/connman/connman/dont_start_connman_on_nfsboot.patch @@ -0,0 +1,11 @@ +--- git/src/connman.service.in~ 2012-10-19 12:42:42.000000000 +0200 ++++ git/src/connman.service.in 2012-10-19 12:46:54.616199557 +0200 +@@ -1,6 +1,8 @@ + [Unit] + Description=Connection service + After=syslog.target ++# only if not NFS mount, connman will disconnect your rootfs otherwise! ++ConditionKernelCommandLine=!root=/dev/nfs + + [Service] + Type=dbus diff --git a/recipes-connectivity/connman/connman_1.4.bbappend b/recipes-connectivity/connman/connman_1.4.bbappend new file mode 100644 index 0000000..94fcfd6 --- /dev/null +++ b/recipes-connectivity/connman/connman_1.4.bbappend @@ -0,0 +1,7 @@ +PRINC = "1" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://dont_start_connman_on_nfsboot.patch \ +" |