mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/mkimage: check filesystem on system partition
This commit is contained in:
parent
ec2a5d2922
commit
0d26727fad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user