From f75e68839960063cbbc22ebf46f25e555eaf77b0 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 30 Apr 2012 18:04:04 -0300 Subject: image_types_fsl.bbclass: avoid use of 'sed' to change partition type The 'sed' might fail in some systems due user right and restrictions so we use 'dd' and 'echo' to do the same trick. Signed-off-by: Otavio Salvador Reported-by: "John Passaniti" --- classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 5d213e5..a6248f9 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -66,7 +66,7 @@ IMAGE_CMD_sdcard () { # Change partition type for mxs processor family if [ "${SOC_FAMILY}" = "mxs" ]; then bbnote "Setting partition type to 0x53 as required for mxs' SoC family." - sed -i 's,.,\x53,450' ${SDCARD} + echo -n S | dd of=${SDCARD} bs=1 count=1 seek=450 conv=notrunc fi case "${IMAGE_BOOTLOADER}" in -- cgit v1.2.3-54-g00ecf