From: Chen Qi Date: Wed, 25 Mar 2015 08:55:01 +0000 (+0800) Subject: shadow: add 'util-linux-sulogin' to RDEPENDS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2FChenQi%2Fbug6698;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Chen Qi --- diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index bb3a927c172..a05ead35b7c 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 = ""