diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-04-09 13:49:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-15 18:12:49 +0100 |
commit | 26e18a143ba5e7c6f58fd53f5c015b36c9ac96f1 (patch) | |
tree | 053aa5b101aa45ef1e4a2499d2857fb0c477c6a0 /meta/recipes-extended/shadow | |
parent | 704a053dd560159a509bc73f3fea86121beeb6dd (diff) | |
download | poky-26e18a143ba5e7c6f58fd53f5c015b36c9ac96f1.tar.gz |
shadow: add 'util-linux-sulogin' to RDEPENDS
If shadow is installed, sulogin from busybox cannot work correctly because
it still assumes that /etc/shadow is not there. This leads to the problem
when booting into rescue mode in an image with shadow installed but not
sulogin from util-linux.
To fix this problem, we add 'util-linux-sulogin' to RDEPENDS of shadow.
This runtime dependency is specific to OE, because we have to ensure
that sulogin can work correctly and sulogin from busybox cannot because
FEATURE_SHADOWPASSWORDS is not enabled by default. And we cannot enable
it by default for busybox, because that would lead to utilities in busybox
to assume the existence of /etc/shadow which is not always true in OE.
[YOCTO #6698]
(From OE-Core rev: 9b45b990d2fc870df556f05908dcb48b9ebcfc02)
(From OE-Core rev: d2e348537786966fd29187ff7fb9ae42614695af)
Signed-off-by: Chen Qi <Qi.Chen@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.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 419fe94b51..5451718cce 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -82,7 +82,8 @@ PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | |||
82 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | 82 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
83 | 83 | ||
84 | RDEPENDS_${PN} = "shadow-securetty \ | 84 | RDEPENDS_${PN} = "shadow-securetty \ |
85 | base-passwd" | 85 | base-passwd \ |
86 | util-linux-sulogin" | ||
86 | RDEPENDS_${PN}_class-native = "" | 87 | RDEPENDS_${PN}_class-native = "" |
87 | RDEPENDS_${PN}_class-nativesdk = "" | 88 | RDEPENDS_${PN}_class-nativesdk = "" |
88 | 89 | ||