From a6ce06cb0180e23ede0814fc1841bf06b63d3f3e Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Wed, 17 Jan 2024 16:15:01 +0100 Subject: [PATCH] scripts/mkimage: create storage filesystem without orphan_file option resize2fs creates a filesystem with unclean orphan file when resizing to more than 32GB if the orphan_file option is enabled, resulting in an unmountable storage partition after initial resize. Explicitly disable the option until the issue is resolved. Signed-off-by: Matthias Reichl --- scripts/mkimage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkimage b/scripts/mkimage index 270303bb7e..da69b7dd52 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -92,7 +92,7 @@ dd if="${DISK}" of="${LE_TMP}/part2.ext4" bs=512 count=0 seek="${STORAGE_PART_CO # create filesystem on part2 echo "image: creating filesystem on part2..." -mke2fs -F -q -t ext4 -m 0 "${LE_TMP}/part2.ext4" +mke2fs -F -q -t ext4 -O ^orphan_file -m 0 "${LE_TMP}/part2.ext4" tune2fs -L "${DISTRO_DISKLABEL}" -U ${UUID_STORAGE} "${LE_TMP}/part2.ext4" >"${SAVE_ERROR}" 2>&1 || show_error e2fsck -n "${LE_TMP}/part2.ext4" >"${SAVE_ERROR}" 2>&1 || show_error sync