diff options
Diffstat (limited to 'classes')
| -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 |
