<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 23 February 2016 at 16:29, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra">I got an error when openssh&#39;s do_install was running useradds to the sysroot:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">| DEBUG: Executing shell function useradd_sysroot</div><div class="gmail_extra">| Running useradd commands...</div><div class="gmail_extra">| /data/poky-master/tmp-glibc/work/core2-32-poky-linux/openssh/7.1p2-r0/temp/run.useradd_sysroot.13825: 264: local: /data/poky-master/tmp-glibc/sysroots/intel-core2-32: bad variable name</div><div class="gmail_extra">| WARNING: exit code 2 from a shell command.</div><div class="gmail_extra">| ERROR: Function failed: useradd_sysroot (log file is located at /data/poky-master/tmp-glibc/work/core2-32-poky-linux/openssh/7.1p2-r0/temp/log.do_install.13825)</div><div class="gmail_extra">ERROR: Task 2939 (/home/ross/Yocto/poky/meta/recipes-connectivity/openssh/<a href="http://openssh_7.1p2.bb" target="_blank">openssh_7.1p2.bb</a>, do_install) failed with exit code &#39;1&#39;</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">    262 perform_useradd() {</div><div class="gmail_extra">    263         local rootdir=&quot;$1&quot;</div><div class="gmail_extra">    264         local opts=`echo $2 | sed s/\&#39;/\&quot;/g`</div><div class="gmail_extra">    265         bbnote &quot;openssh: Performing useradd with [$opts]&quot;</div></div></div></blockquote></div><br>The *amazing* BB_VERBOSE_LOGS option (set to 1 in local.conf to get all shell scripts to do set -x) tells me this is due to missing quotes around the opts assignment:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">+ local opts=--root /data/poky-master/tmp-glibc/sysroots/intel-core2-32 --system --no-create-home --home-dir /var/run/sshd --shell /bin/false --user-group sshd</div><div class="gmail_extra">/data/poky-master/tmp-glibc/work/core2-32-poky-linux/openssh/7.1p2-r0/temp/run.useradd_sysroot.16570: 264: local: /data/poky-master/tmp-glibc/sysroots/intel-core2-32: bad variable name</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>