mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/mkimage: sizelimit for partition2
This commit is contained in:
parent
1744311e1c
commit
624abb61f4
@ -192,7 +192,8 @@ fi # bootloader
|
||||
losetup -d "$LOOP"
|
||||
echo "image: creating filesystem on part2..."
|
||||
OFFSET=$(( $STORAGE_PART_START * 512 ))
|
||||
losetup -o $OFFSET "$LOOP" "$DISK"
|
||||
SIZELIMIT=$(( $STORAGE_SIZE * 1024 * 1024 ))
|
||||
losetup -o $OFFSET --sizelimit $SIZELIMIT "$LOOP" "$DISK"
|
||||
mke2fs -q -t ext4 -m 0 "$LOOP"
|
||||
tune2fs -U $UUID_STORAGE "$LOOP"
|
||||
e2fsck -n "$LOOP"
|
||||
|
Loading…
x
Reference in New Issue
Block a user