boot-directdisk: use awk instead of echo -ne for dash compatibility
authorJonathan Liu <net147@gmail.com>
Sat, 20 Jul 2013 12:11:20 +0000 (22:11 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Jul 2013 10:35:36 +0000 (11:35 +0100)
commitadcb8fefb07484d157762706ac9ba46fe22577b4
tree71f2293216ba441770651dcf4a270c05e45a207d
parent7a3f4f896ef9639f97afdea6516224d2fc4b061d
boot-directdisk: use awk instead of echo -ne for dash compatibility

The echo command is a dash shell built-in and does not support the
-n and -e options so use awk instead.

This fixes the partition table being corrupted when writing the MBR
disk signature into the image.

[YOCTO #4859]

(From OE-Core rev: 1928f46e8e9f281e3e64f916048cc9314e125150)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/boot-directdisk.bbclass