| Summary: | ddimage: incompatibility with dash | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Hongxu Jia <hongxu.jia> |
| Component: | core | Assignee: | Hongxu Jia <hongxu.jia> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | dvhart, hongxu.jia, kai.kang, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, ning.zhang, Qi.Chen, sen.zhang, sgw, yi.zhao |
| Version: | 1.5 | ||
| Target Milestone: | 1.5 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
Drop the function keyword from the script, that's a bashism. Apologies. |
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 ...