summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-11-09 17:02:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-11 11:01:07 +0000
commitaf2a885c9e36a976688dbe0fafff0154ddc7120a (patch)
tree2fa707334d85c76a2d5e19814091e981fd660f12 /meta/recipes-extended/shadow
parent8c6239181cbf498e0302b7bb5d97ea71b0dd0f35 (diff)
downloadast2050-yocto-poky-af2a885c9e36a976688dbe0fafff0154ddc7120a.zip
ast2050-yocto-poky-af2a885c9e36a976688dbe0fafff0154ddc7120a.tar.gz
shadow: Generate the shadow files at rootfs construction
With the recent changes to the shadow-native package support "--root", we can now convert the passwd/group files to their shadow forms while doing the rootfs install, instead of waiting to run on the target. (From OE-Core rev: 662431ace246e9bb35ad8d0ddd0510193f93517d) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow_4.1.4.3.bb12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
index 5bc4a61..25330a4 100644
--- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
-PR = "r4"
+PR = "r5"
SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
file://login_defs_pam.sed \
@@ -128,11 +128,13 @@ pkg_postinst_${PN} () {
update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 200
if [ "x$D" != "x" ]; then
- exit 1
- fi
+ rootarg="--root=$D"
+ else
+ rootarg=""
+ fi
- pwconv
- grpconv
+ pwconv $rootarg
+ grpconv $rootarg
}
pkg_prerm_${PN} () {
OpenPOWER on IntegriCloud