about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorjbu <pullmoll@t-online.de>2015-05-26 13:44:13 +0200
committerjbu <pullmoll@t-online.de>2015-05-26 13:44:13 +0200
commita7f094439b8dbf7c89dc5018f22cb721d90fc523 (patch)
tree70cc759b7cfda7f0a93854a3c2d4970da683465c /mkimage.sh.in
parent91c7d09305a73994605258691748859296b28175 (diff)
downloadhrmpf-a7f094439b8dbf7c89dc5018f22cb721d90fc523.tar.gz
hrmpf-a7f094439b8dbf7c89dc5018f22cb721d90fc523.tar.xz
hrmpf-a7f094439b8dbf7c89dc5018f22cb721d90fc523.zip
mkimage.sh: fix partition size + toggle boot flag
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index aa3ad1a..c317ded 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -143,7 +143,8 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
 fi
 case "$PLATFORM" in
 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)
     mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p1 >/dev/null 2>&1
     mount ${LOOPDEV}p1 $ROOTFSDIR