mkimage.sh: fix partition size + toggle boot flag
This commit is contained in:
parent
91c7d09305
commit
a7f094439b
@ -143,7 +143,8 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
|
|||||||
fi
|
fi
|
||||||
case "$PLATFORM" in
|
case "$PLATFORM" in
|
||||||
cubieboard2|cubietruck)
|
cubieboard2|cubietruck)
|
||||||
parted $FILENAME mkpart primary ext2 2048s ${BOOT_FSSIZE} 100%
|
parted $FILENAME mkpart primary ext2 2048s ${ROOT_FSSIZE} 100%
|
||||||
|
parted $FILENAME toggle 1 boot
|
||||||
LOOPDEV=$(losetup --show --find --partscan $FILENAME)
|
LOOPDEV=$(losetup --show --find --partscan $FILENAME)
|
||||||
mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p1 >/dev/null 2>&1
|
mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p1 >/dev/null 2>&1
|
||||||
mount ${LOOPDEV}p1 $ROOTFSDIR
|
mount ${LOOPDEV}p1 $ROOTFSDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user