aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-03-25 16:55:01 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-04-09 13:39:10 +0800
commit0be883f21ba69887c02ce4e5b63506272efe7b23 (patch)
tree2fe162210bc0457ea53c227ffabb5f7afcdecd53
parent83af41eda698917a427db049762c2220983b0a5f (diff)
downloadopenembedded-core-contrib-ChenQi/bug6698.tar.gz
openembedded-core-contrib-ChenQi/bug6698.tar.bz2
openembedded-core-contrib-ChenQi/bug6698.zip
shadow: add 'util-linux-sulogin' to RDEPENDSChenQi/bug6698
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] Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-extended/shadow/shadow.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index bb3a927c17..a05ead35b7 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -83,7 +83,8 @@ PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
RDEPENDS_${PN} = "shadow-securetty \
- base-passwd"
+ base-passwd \
+ util-linux-sulogin"
RDEPENDS_${PN}_class-native = ""
RDEPENDS_${PN}_class-nativesdk = ""