On systems with dash as /bin/sh there were failures while invoking ddimage. ... $ ls -al /bin/sh lrwxrwxrwx 1 root root 9 Jun 4 17:45 /bin/sh -> /bin/dash jiahongxu:images$ sudo dash ~/yocto/poky/scripts/contrib/ddimage ./core-image-sato-emenlow-noemgd.hddimg /dev/sdb [sudo] password for jiahongxu: poky/scripts/contrib/ddimage: 9: poky/scripts/contrib/ddimage: Syntax error: "(" unexpected ...
Drop the function keyword from the script, that's a bashism. Apologies.
Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a3bf47abb4f3c4df65faef28ba52e5fc33301c73