summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2014-11-01 06:48:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-31 10:18:50 +0000
commit3c76f85d5fab7d2851676fcab7e63789b5fb6e0c (patch)
tree921f4a9935b8457ac52f5c2f0eff3a8f2b6307bb /meta/recipes-devtools
parent7e9d8bcadabeb122fb7d2047e598a211ca2fc295 (diff)
downloadpoky-3c76f85d5fab7d2851676fcab7e63789b5fb6e0c.tar.gz
pseudo: provide fallback passwd and group files
Normally pseudo is built with --without-passwd-fallback, which requires that somebody provide target passwd and group files. Those come from base-passwd in OE, but base-passwd cannot be built without first invoking operations under pseudo that require getpw*/getgr*. Provide the absolute minimum stub files, matching in content what will eventually be on the target, that can be used in the cases where the target files are not yet available. The requirements for minimum stub are the usernames and groups identified in meta/files/fs-perms.txt. (From OE-Core rev: 91443426246fbe13083c19801b7c74365e041271) (From OE-Core rev: a81b9811803c7a904e0d806302636f80ce6d31a4) Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/pseudo/files/fallback-group2
-rw-r--r--meta/recipes-devtools/pseudo/files/fallback-passwd1
-rw-r--r--meta/recipes-devtools/pseudo/pseudo_1.6.2.bb9
3 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/files/fallback-group b/meta/recipes-devtools/pseudo/files/fallback-group
new file mode 100644
index 0000000000..81bf732312
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/files/fallback-group
@@ -0,0 +1,2 @@
1root:*:0:
2mail:*:8:
diff --git a/meta/recipes-devtools/pseudo/files/fallback-passwd b/meta/recipes-devtools/pseudo/files/fallback-passwd
new file mode 100644
index 0000000000..c1458dc0f6
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/files/fallback-passwd
@@ -0,0 +1 @@
root::0:0:root:/home/root:/bin/sh
diff --git a/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb b/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb
index fb85f896e4..261c8d3abd 100644
--- a/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb
@@ -5,9 +5,18 @@ SRC_URI = " \
5 file://0001-pseudo_client.c-protect-pwd_lck-against-magic.patch \ 5 file://0001-pseudo_client.c-protect-pwd_lck-against-magic.patch \
6 file://0002-pseudo_util-modify-interface-to-pseudo_etc_file.patch \ 6 file://0002-pseudo_util-modify-interface-to-pseudo_etc_file.patch \
7 file://0003-pseudo_client.c-support-multiple-directories-in-PSEU.patch \ 7 file://0003-pseudo_client.c-support-multiple-directories-in-PSEU.patch \
8 file://fallback-passwd \
9 file://fallback-group \
8" 10"
9 11
10SRC_URI[md5sum] = "4d7b4f9d1b4aafa680ce94a5a9a52f1f" 12SRC_URI[md5sum] = "4d7b4f9d1b4aafa680ce94a5a9a52f1f"
11SRC_URI[sha256sum] = "c72be92689511ced7c419149c6aaa1b1a9e4dfc6409d1f16ab72cc35bc1e376a" 13SRC_URI[sha256sum] = "c72be92689511ced7c419149c6aaa1b1a9e4dfc6409d1f16ab72cc35bc1e376a"
12 14
13PSEUDO_EXTRA_OPTS ?= "--enable-force-async --without-passwd-fallback" 15PSEUDO_EXTRA_OPTS ?= "--enable-force-async --without-passwd-fallback"
16
17do_install_append_class-native () {
18 install -d ${D}${sysconfdir}
19 # The fallback files should never be modified
20 install -m 444 ${WORKDIR}/fallback-passwd ${D}${sysconfdir}/passwd
21 install -m 444 ${WORKDIR}/fallback-group ${D}${sysconfdir}/group
22}