Changeset e99f652ede4612eec7cef5fa16638b07519cba8e broke the runqemu scripts for me. Specifically the findimage function. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e99f652ede4612eec7cef5fa16638b07519cba8e Before I could run: $ runqemu qemuarm and findimage would find an appropriate image to run. Now I see: /srv/yocto/poky/scripts/runqemu: line 303: [: too many arguments I'm using the base shell under Ubuntu 12.04 LTS. I am able to produce a similar error if I switch to dash. The hunk which breaks things is: - if [[ "$name" =~ core-image-sato-sdk || - "$name" =~ core-image-sato || - "$name" =~ core-image-lsb || - "$name" =~ core-image-basic || - "$name" =~ core-image-minimal ]]; then + if [ "$name" =~ core-image-sato-sdk -o \ + "$name" =~ core-image-sato -o \ + "$name" =~ core-image-lsb -o \ + "$name" =~ core-image-basic -o \ + "$name" =~ core-image-minimal ]; then Although at least [[ is a bashism so we can't really just revert.
A case statement should be able to resolve this as mentioned on list...
*** Bug 2449 has been marked as a duplicate of this bug. ***
This was fixed by Peter Seebach with this commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=441623224b73c82b4140aa9015823eb91a417cdc
verified