diff --git a/scripts/mkimage b/scripts/mkimage index 0453fcb77f..c765dbbb88 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -268,6 +268,14 @@ fi # bootloader echo "image: merging part2 back to image..." dd if="$OE_TMP/part2.ext4" of="$DISK" bs=512 seek="$STORAGE_PART_START" conv=fsync,notrunc >"$SAVE_ERROR" 2>&1 || show_error +# extract part1 from image to run fsck + echo "image: extracting part1 from image..." + SYSTEM_PART_COUNT=$(( $SYSTEM_PART_END - $SYSTEM_PART_START + 1 )) + sync + dd if="$DISK" of="$OE_TMP/part1.fat" bs=512 skip="$SYSTEM_PART_START" count="$SYSTEM_PART_COUNT" conv=fsync >"$SAVE_ERROR" 2>&1 || show_error + echo "image: checking filesystem on part1..." + fsck -n $OE_TMP/part1.fat >"$SAVE_ERROR" 2>&1 || show_error + # gzip echo "image: compressing..." gzip $DISK