From a58995b33e1bd3a5342441fde1815f0e4c8587f6 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Fri, 19 Oct 2012 16:04:44 +0200 Subject: connman.service: start the service only when the rootfs is not an NFS mount --- .../connman/connman/dont_start_connman_on_nfsboot.patch | 11 +++++++++++ recipes-connectivity/connman/connman_1.4.bbappend | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 recipes-connectivity/connman/connman/dont_start_connman_on_nfsboot.patch create mode 100644 recipes-connectivity/connman/connman_1.4.bbappend (limited to 'recipes-connectivity/connman') 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 \ +" -- cgit v1.2.3