[PATCH 11/12] nfs-utils: inherit volatiles to support read-only rootfs

Qi.Chen
2013-01-24T08:32:34Z

From: Chen Qi <Qi.Chen@windriver.com>

Inherit volatiles.bbclass to support read-only rootfs.

[YOCTO #3406]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
.../nfs-utils/nfs-utils_1.2.3.bb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
index 84b8e76..55208d5 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
@@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
RDEPENDS_${PN} = "rpcbind"
RRECOMMENDS_${PN} = "kernel-module-nfsd"

-PR = "r5"
+PR = "r6"

SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
file://nfs-utils-1.0.6-uclibc.patch \
@@ -34,7 +34,10 @@ INITSCRIPT_NAME = "nfsserver"
# in the shutdown levels, but that works fine.
INITSCRIPT_PARAMS = "defaults"

-inherit autotools update-rc.d
+inherit autotools update-rc.d volatiles
+
+VOLATILE_DIR = "/var/volatile/lib/nfs"
+VOLATILE_LINK = "/var/lib/nfs"

# --enable-uuid is need for cross-compiling
EXTRA_OECONF = "--with-statduser=nobody \
--
1.7.9.5