aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2014-09-21 20:44:29 +0200
committerAndreas Oberritter <obi@opendreambox.org>2017-06-26 22:57:13 +0200
commit94e12b7db94c44b7972f7d0b0c81cd49413eee47 (patch)
tree9a4725390a7bc6a5698bb98a168d336f4808cbbb /meta
parent6e593ce2f2ab13e4e27f46576ee47a06cb21e0dc (diff)
downloadopenembedded-core-contrib-94e12b7db94c44b7972f7d0b0c81cd49413eee47.tar.gz
nfs-utils: change file ownership for statd
Otherwise, rpc.statd complains about "Running as root. chown /var/lib/nfs/statd to choose different user" when started by systemd. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
index c2324df0ac..ab56ccd5ac 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
@@ -112,6 +112,8 @@ do_compile_prepend() {
}
do_install_append () {
+ chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd
+
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon