Bug 4617 - ddimage: incompatibility with dash
Summary: ddimage: incompatibility with dash
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-06 06:23 UTC by Hongxu Jia
Modified: 2013-06-12 23:44 UTC (History)
12 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hongxu Jia 2013-06-06 06:23:55 UTC
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
...
Comment 1 Darren Hart 2013-06-06 14:37:20 UTC
Drop the function keyword from the script, that's a bashism. Apologies.