diff options
-rw-r--r-- | classes/sdcard_image.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index 9aed4f84..be7ab3b9 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass | |||
@@ -7,6 +7,7 @@ IMAGE_FSTYPES_append = " tar.bz2 sdimg" | |||
7 | LOSETUP ?= "/sbin/losetup" | 7 | LOSETUP ?= "/sbin/losetup" |
8 | 8 | ||
9 | # Since these need to go in /etc/fstab we can hardcode them | 9 | # Since these need to go in /etc/fstab we can hardcode them |
10 | # Since the vars are weakly assigned, you can override them from your local.conf | ||
10 | LOOPDEV ?= "/dev/loop1" | 11 | LOOPDEV ?= "/dev/loop1" |
11 | LOOPDEV_BOOT ?= "/dev/loop2" | 12 | LOOPDEV_BOOT ?= "/dev/loop2" |
12 | LOOPDEV_FS ?= "/dev/loop3" | 13 | LOOPDEV_FS ?= "/dev/loop3" |
@@ -28,7 +29,7 @@ IMAGE_CMD_sdimg () { | |||
28 | 29 | ||
29 | # If an SD image is already present, reuse and reformat it | 30 | # If an SD image is already present, reuse and reformat it |
30 | if [ ! -e ${SDIMG} ] ; then | 31 | if [ ! -e ${SDIMG} ] ; then |
31 | dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=444 | 32 | dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=222 |
32 | fi | 33 | fi |
33 | 34 | ||
34 | ${LOSETUP} ${LOOPDEV} ${SDIMG} | 35 | ${LOSETUP} ${LOOPDEV} ${SDIMG} |