mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
additional sync before losetup -d
seems to be required by some disk subsystems, otherwise losetup -d fails due to device or resource busy
This commit is contained in:
parent
15bf3b423b
commit
2dd0307b97
@ -213,6 +213,7 @@ echo "#########################################################"
|
|||||||
|
|
||||||
# remount loopback device
|
# remount loopback device
|
||||||
if [ "$DISK" = "/dev/loop0" ]; then
|
if [ "$DISK" = "/dev/loop0" ]; then
|
||||||
|
sync
|
||||||
losetup -d $DISK
|
losetup -d $DISK
|
||||||
losetup $DISK $IMGFILE -o 1048576 --sizelimit 131071488
|
losetup $DISK $IMGFILE -o 1048576 --sizelimit 131071488
|
||||||
PART1=$DISK
|
PART1=$DISK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user