On 23 February 2016 at 16:29, Burton, Ross <ross.bur...@intel.com> wrote:
> I got an error when openssh's do_install was running useradds to the > sysroot: > > | DEBUG: Executing shell function useradd_sysroot > | Running useradd commands... > | > /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 > | WARNING: exit code 2 from a shell command. > | 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) > ERROR: Task 2939 (/home/ross/Yocto/poky/meta/recipes-connectivity/openssh/ > openssh_7.1p2.bb, do_install) failed with exit code '1' > > 262 perform_useradd() { > 263 local rootdir="$1" > 264 local opts=`echo $2 | sed s/\'/\"/g` > 265 bbnote "openssh: Performing useradd with [$opts]" > 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: + 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 /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 Ross
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core