From: Otavio Salvador Date: Mon, 30 Apr 2012 21:04:04 +0000 (-0300) Subject: image_types_fsl.bbclass: avoid use of 'sed' to change partition type X-Git-Tag: 2.1~1849 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=830c4d502f037a4bc181d549e2b74a815c4c9d55;p=meta-freescale.git 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" --- diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 5d213e51..a6248f93 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/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