mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
bcm2835-bootloader create_sdcard: create the storage partition aligned on 4mb
This commit is contained in:
parent
c02f928cb2
commit
1ed97dc19d
@ -196,7 +196,9 @@ echo "#########################################################"
|
|||||||
# create a single partition
|
# create a single partition
|
||||||
echo "creating partitions on $DISK..."
|
echo "creating partitions on $DISK..."
|
||||||
parted -s "$DISK" unit cyl mkpart primary fat32 -- 0 16
|
parted -s "$DISK" unit cyl mkpart primary fat32 -- 0 16
|
||||||
parted -s "$DISK" unit cyl mkpart primary ext2 -- 16 -2
|
# align the partition on 4mb boundary, starting at 132mb (132 % 4 == 0), which
|
||||||
|
# is right after the first partition
|
||||||
|
parted -s "$DISK" mkpart primary ext2 -- 132MiB -2cyl
|
||||||
|
|
||||||
# make partition active (bootable)
|
# make partition active (bootable)
|
||||||
echo "marking partition active..."
|
echo "marking partition active..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user