diff options
author | Seth Bollinger <seth.boll@gmail.com> | 2013-04-22 07:23:45 -0500 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2013-05-02 14:11:32 +0200 |
commit | 770b88b2ce696fddd2fdb99bbcd894a43b519f48 (patch) | |
tree | d4c5f37bc0c2a7196e8440d7b161fee54c3c0be5 /classes/sdcard_image-rpi.bbclass | |
parent | c5f81306b58e91f1c845da063c2476733cdb5bf5 (diff) | |
download | meta-raspberrypi-dylan.tar.gz |
sdcard_image-rpi.bbclass: Fix error in conditional testdylan
When the shell tests for rootfs type I was seeing "[[: not found". I
use echo and egrep to test for the xz rootfs type to work around this
error.
Signed-off-by: Seth Bollinger <seth.boll@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'classes/sdcard_image-rpi.bbclass')
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 05087b5..a2fcd52 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -101,7 +101,7 @@ IMAGE_CMD_rpi-sdimg () { | |||
101 | # Burn Partitions | 101 | # Burn Partitions |
102 | dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 102 | dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
103 | # If SDIMG_ROOTFS_TYPE is a .xz file use xzcat | 103 | # If SDIMG_ROOTFS_TYPE is a .xz file use xzcat |
104 | if [[ "$SDIMG_ROOTFS_TYPE" == *.xz ]] | 104 | if echo "${SDIMG_ROOTFS_TYPE}" | egrep -q "*\.xz" |
105 | then | 105 | then |
106 | xzcat ${SDIMG_ROOTFS} | dd of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 106 | xzcat ${SDIMG_ROOTFS} | dd of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
107 | else | 107 | else |