aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-10-18 00:35:38 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-10-18 00:40:50 +0300
commit4ed04f40736ed438bcd779fdd37a554b1ca01bbc (patch)
tree45383a99c2011be326bb360f0723cb8e2e0e7e69
parentae68402e2278276b423c38107c850df244f38f62 (diff)
downloadmeta-raspberrypi-4ed04f40736ed438bcd779fdd37a554b1ca01bbc.tar.gz
meta-raspberrypi-4ed04f40736ed438bcd779fdd37a554b1ca01bbc.tar.bz2
meta-raspberrypi-4ed04f40736ed438bcd779fdd37a554b1ca01bbc.zip
sdcard_image-rpi: Use the partition table as described in comments
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--classes/sdcard_image-rpi.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index b3c7c10..00d9cc4 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -73,7 +73,7 @@ IMAGE_CMD_rpi-sdimg () {
parted -s ${SDIMG} unit KiB mkpart primary fat32 ${IMAGE_ROOTFS_ALIGNMENT} $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT})
parted -s ${SDIMG} set 1 boot on
# Create rootfs partition
- parted -s ${SDIMG} unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) 100%
+ parted -s ${SDIMG} unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT} \+ ${ROOTFS_SIZE})
parted ${SDIMG} print
# Create a vfat image with boot files