mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/mkimage: sync disk few more times
fix issue like this image: creating filesystem on part1... losetup: /dev/loop0: device is busy
This commit is contained in:
parent
097e227594
commit
62b83002ee
@ -99,6 +99,7 @@ fi
|
|||||||
|
|
||||||
# create filesystem on part1
|
# create filesystem on part1
|
||||||
losetup -d "$LOOP"
|
losetup -d "$LOOP"
|
||||||
|
sync
|
||||||
echo "image: creating filesystem on part1..."
|
echo "image: creating filesystem on part1..."
|
||||||
OFFSET=$(( 2048 * 512 ))
|
OFFSET=$(( 2048 * 512 ))
|
||||||
SIZELIMIT=$(( $SYSTEM_SIZE * 1024 * 1024 ))
|
SIZELIMIT=$(( $SYSTEM_SIZE * 1024 * 1024 ))
|
||||||
@ -216,6 +217,7 @@ fi # bootloader
|
|||||||
|
|
||||||
# create filesystem on part2
|
# create filesystem on part2
|
||||||
losetup -d "$LOOP"
|
losetup -d "$LOOP"
|
||||||
|
sync
|
||||||
echo "image: creating filesystem on part2..."
|
echo "image: creating filesystem on part2..."
|
||||||
OFFSET=$(( $STORAGE_PART_START * 512 ))
|
OFFSET=$(( $STORAGE_PART_START * 512 ))
|
||||||
SIZELIMIT=$(( $STORAGE_SIZE * 1024 * 1024 ))
|
SIZELIMIT=$(( $STORAGE_SIZE * 1024 * 1024 ))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user