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 | d18e953eaeffae53a6f170491d8f048bac200db7 (patch) | |
tree | 43dd3281721876f903b8667cc048ae161309d3bc | |
parent | 32ce26ac1c46d1cf9227758cf160812a952e6427 (diff) |
connman.service: start the service only when the rootfs is not an NFS mount
-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 \ +" |