From 65beb0f276971b924930cc1b21b97b1f47f1cb46 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 15 Jul 2019 20:26:38 +0200 Subject: [PATCH] scripts/mkimage: use fsck.fat to check FAT partition fsck.fat is available in toolchain, so use that instead of fsck from build host (which may not support checking FAT filesystems). Signed-off-by: Matthias Reichl --- scripts/mkimage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkimage b/scripts/mkimage index 953026afb1..9a9f291a71 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -286,7 +286,7 @@ SYSTEM_PART_COUNT=$(( ${SYSTEM_PART_END} - ${SYSTEM_PART_START} + 1 )) sync dd if="${DISK}" of="${LE_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 "${LE_TMP}/part1.fat" >"${SAVE_ERROR}" 2>&1 || show_error +fsck.fat -n "${LE_TMP}/part1.fat" >"${SAVE_ERROR}" 2>&1 || show_error # create virtual image if [ "${PROJECT}" = "Generic" ]; then