about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-05-27 08:38:07 +0200
committerJuan RP <xtraeme@gmail.com>2015-05-27 08:38:07 +0200
commitae8d2e93eb66cabf1a0f56b5707ec4022ccb37e2 (patch)
tree70cc759b7cfda7f0a93854a3c2d4970da683465c
parent91c7d09305a73994605258691748859296b28175 (diff)
parenta7f094439b8dbf7c89dc5018f22cb721d90fc523 (diff)
downloadhrmpf-ae8d2e93eb66cabf1a0f56b5707ec4022ccb37e2.tar.gz
hrmpf-ae8d2e93eb66cabf1a0f56b5707ec4022ccb37e2.tar.xz
hrmpf-ae8d2e93eb66cabf1a0f56b5707ec4022ccb37e2.zip
Merge pull request #31 from pullmoll/master
mkimage.sh: fix partition size + toggle boot flag
-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