<?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>1889</bug_id>
          
          <creation_ts>2012-01-10 18:06:17 +0000</creation_ts>
          <short_desc>useradd.bbclass failed to create home directory for new user</short_desc>
          <delta_ts>2012-03-30 05:16:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>2127</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>fixed.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          <blocked>1818</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Edwin Zhai">edwin.zhai</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18065</commentid>
    <comment_count>0</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-01-10 18:06:17 +0000</bug_when>
    <thetext>We find this bug when fighting bug 1818. 

Rootless X need create a new user &quot;xuser&quot; in xserver-nodem-init.bb:
USERADD_PACKAGES = &quot;${PN}&quot;
USERADD_PARAM_${PN} = &quot;--create-home \
                       --groups video,tty,audio \
                       --user-group xuser&quot;

But the issue is we have no &quot;/home/xuser&quot; created in final disk image, so that rootless X start failed.

I have tried to use &quot;-d /home/xuser&quot;, but same failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18066</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-01-10 18:10:31 +0000</bug_when>
    <thetext>To reproduce it, just build a core-image-sato for atom-pc(or get it from autobuilder), then append &quot;psplash=false&quot; to the syslinux.cfg, and boot with rootless X failed.


You can check the /home, there is only root directory there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18669</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-02-21 11:43:27 +0000</bug_when>
    <thetext>As a hunch I&apos;d guess that the home directory is created but that it&apos;s not packaged and therefore not installed.

One possible solution would be to have the useradd class add a postinst to create the home directory if it doesn&apos;t already exist?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18922</commentid>
    <comment_count>3</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-03-08 20:34:21 +0000</bug_when>
    <thetext>Paul, 

During the bug triage, RP mentioned that you&apos;ve done some work in this area recently, so can you look at the bug context and make some comments? thx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18963</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-03-12 10:11:36 +0000</bug_when>
    <thetext>I have been able to ascertain that at least when I&apos;m running into this, it&apos;s not a packaging issue - useradd is run at rootfs creation time. Also, the correct option (--create-home) is being passed, so apparently it is being ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19631</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-29 20:38:40 +0000</bug_when>
    <thetext>I&apos;m nearly certain this bug is a duplicate of bug #2127, which is now fixed. I cannot reproduce the problem. Please re-open if this is encountered again, and attach a log of the do_rootfs step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19632</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-29 20:39:06 +0000</bug_when>
    <thetext>Marking as resolved dupe.

*** This bug has been marked as a duplicate of bug 2127 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19670</commentid>
    <comment_count>7</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-30 05:14:50 +0000</bug_when>
    <thetext>Have tested latest atom image @ http://autobuilder.pokylinux.org/nightly/20120328-1/machines/atom-pc/core-image-sato-atom-pc.hddimg

xuser&apos;s home directory can be created successfully, and rootless X start well.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>