diff options
author | Zhang Xiao <xiao.zhang@windriver.com> | 2013-08-27 10:07:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-29 12:50:00 +0100 |
commit | 6ecd6fb730f473fb90cefd7d0b431d5b8d2c05f7 (patch) | |
tree | 698fa6e20ae43094bbac1eb7d1f47b9437c3efc4 | |
parent | 6d6a3f805b0fad6f904afb52dc12bfb543e3eec5 (diff) | |
download | openembedded-core-6ecd6fb730f473fb90cefd7d0b431d5b8d2c05f7.tar.gz openembedded-core-6ecd6fb730f473fb90cefd7d0b431d5b8d2c05f7.tar.bz2 openembedded-core-6ecd6fb730f473fb90cefd7d0b431d5b8d2c05f7.zip |
libnfsidmap: Add and modify idmapd.conf
add configuration file to make rpc.idmapd to not report below error:
rpc.idmapd: Skipping configuration file "/etc/idmapd.conf": No such file or directory
rpc.idmapd: Could not find group "nobody"
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/files/Set_nobody_user_group.patch | 18 | ||||
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/files/Set_nobody_user_group.patch b/meta/recipes-connectivity/nfs-utils/files/Set_nobody_user_group.patch new file mode 100644 index 0000000000..4633da919e --- /dev/null +++ b/meta/recipes-connectivity/nfs-utils/files/Set_nobody_user_group.patch @@ -0,0 +1,18 @@ +Set nobody user and group + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Roy.Li <rongqing.li@windriver.com> +--- a/idmapd.conf ++++ b/idmapd.conf +@@ -17,8 +17,8 @@ + + [Mapping] + +-#Nobody-User = nobody +-#Nobody-Group = nobody ++Nobody-User = nobody ++Nobody-Group = nogroup + + [Translation] + diff --git a/meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb b/meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb index 07ca22935f..77c4a001e8 100644 --- a/meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb +++ b/meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb @@ -9,6 +9,7 @@ PR = "r0" SRC_URI = "http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${BPN}-${PV}.tar.gz \ file://fix-ac-prereq.patch \ + file://Set_nobody_user_group.patch \ " SRC_URI[md5sum] = "2ac4893c92716add1a1447ae01df77ab" @@ -17,3 +18,9 @@ SRC_URI[sha256sum] = "656d245d84400e1030f8f40a5a27da76370690c4a932baf249110f047f inherit autotools EXTRA_OECONF = "--disable-ldap" + +do_install_append () { + install -d ${D}${sysconfdir}/ + install -m 0644 ${WORKDIR}/${BPN}-${PV}/idmapd.conf ${D}${sysconfdir}/idmapd.conf +} + |