From 4e74c20af2b1aa98ff47398a8cb325cdd0a246c3 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 9 May 2017 17:14:48 +0300 Subject: image_dd: remove old boot.img before trying to create it rootfs creation failed if boot.img still existed from previous build. Change-Id: Ib85cc7dbacbc0d0cc7d0700985ad9c52a6ade0df Reviewed-by: Mikko Gronoff --- classes/image_dd.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/image_dd.bbclass b/classes/image_dd.bbclass index e0addf7..e05536b 100644 --- a/classes/image_dd.bbclass +++ b/classes/image_dd.bbclass @@ -73,6 +73,7 @@ IMAGE_CMD_dd() { # Create boot partition image BOOT_BLOCKS=$(LC_ALL=C parted -s ${IMAGE} unit b print \ | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') + rm -f ${WORKDIR}/boot.img mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS do_populate_boot -- cgit v1.2.3-54-g00ecf