<?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>10334</bug_id>
          
          <creation_ts>2016-09-27 13:49:15 +0000</creation_ts>
          <short_desc>useradd_sysroot fails due to the way USERADD_PARAM is set in systemd_229 recipe</short_desc>
          <delta_ts>2016-09-29 14:46:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1.2</version>
          <rep_platform>All</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Venka Gade">venkag</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>akuster</cc>
    
    <cc>infras.bug.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>66625</commentid>
    <comment_count>0</comment_count>
    <who name="Venka Gade">venkag</who>
    <bug_when>2016-09-27 13:49:15 +0000</bug_when>
    <thetext>A recent update to system recipe (systemd_229.bb) resulted in do_install to fail. The following are the changes:

USERADD_PACKAGES = &quot;${PN} ${PN}-extra-utils&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;microhttpd&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-journal-gateway;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;microhttpd&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-journal-remote;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;journal-upload&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-journal-upload;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;timesyncd&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-timesync;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;networkd&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-network;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;coredump&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-coredump;&apos;, &apos;&apos;, d)}&quot;
USERADD_PARAM_${PN} += &quot;${@bb.utils.contains(&apos;PACKAGECONFIG&apos;, &apos;resolved&apos;, &apos;--system -d / -M --shell /bin/nologin systemd-resolve;&apos;, &apos;&apos;, d)}&quot;
GROUPADD_PARAM_${PN} = &quot;-r lock; -r systemd-journal&quot;
USERADD_PARAM_${PN}-extra-utils += &quot;--system -d / -M --shell /bin/nologin systemd-bus-proxy;&quot;


To simplify things, lets shorten the above settings to:

USERADD_PACKAGES = &quot;${PN}&quot; &quot;${PN}-a&quot;
USERADD_PARAM_${PN} += x; 
USERADD_PARAM_${PN} += y;
USERADD_PARAM_${PN}-a = z;

As a result of parsing these settings by get_all_cmd_parse() in meta/classes/useradd.bbclass, this turns out to be:

x; y; ; z;

&quot;; &quot;.join(params) introduces an additional semicolon in the list. As a result, perform_useradd runs with empty argument listand causes do_install() to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66715</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-29 14:43:08 +0000</bug_when>
    <thetext>Was this a bug with krogoth fixed by http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=krogoth&amp;id=2ea93e2b1db4a825543e37e68121d63a71c7d6b3 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66716</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-29 14:46:01 +0000</bug_when>
    <thetext>Certainly looks like that was the fix, marking as resolved fixed.  Venka, if you can replicate with current oe-core/krogoth then please reopen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66717</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-29 14:46:23 +0000</bug_when>
    <thetext>(Actually closing this time)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>