<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6698</bug_id>
          
          <creation_ts>2014-09-09 02:12:13 +0000</creation_ts>
          <short_desc>Root with password cannot login in rescue mode</short_desc>
          <delta_ts>2015-04-13 02:00:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45475</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-09-09 02:12:13 +0000</bug_when>
    <thetext>If the root has a password, and we boot the system up to make it enter rescue mode, the root cannot login. This is because in rescue mode, `sulogin&apos; is invoked as the login manager.

How to reproduce:
1. Add in local.conf:
   INHERIT += &quot;extrausers&quot;
   EXTRA_USERS_PARAMS = &quot;usermod -P &apos;root&apos; root; \
                      useradd -P &apos;test&apos; test;&quot;
2. bitbake core-image-minimal
3. runqemu qemux86 nographic bootparams=&quot;-s&quot;

P.S.
Both sysvinit and systemd have the this problem.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50254</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-04-13 02:00:55 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: 9b45b990d2fc870df556f05908dcb48b9ebcfc02
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=9b45b990d2fc870df556f05908dcb48b9ebcfc02

Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Thu Apr  9 13:49:29 2015 +0800

shadow: add &apos;util-linux-sulogin&apos; 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 &apos;util-linux-sulogin&apos; 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 &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;


Module: openembedded-core.git
Branch: master
Commit: 4bde182ed236243547929dd98763f1c09eddd097
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=4bde182ed236243547929dd98763f1c09eddd097

Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Thu Apr  9 13:49:28 2015 +0800

util-linux: split out util-linux-sulogin

[YOCTO #6698]

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>