mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-26 04:58:22 +01:00
sdcard_image-sunxi.bbclass: fixed .xz check
.xz check was relying on a bash check that was not working, returning "]] : not found" error. Replaced that check with an sh-compatible check, from https://github.com/djwillis/meta-raspberrypi/blob/master/classes/sdcard_image-rpi.bbclass
This commit is contained in:
parent
694420f4d4
commit
7880894810
@ -75,7 +75,7 @@ IMAGE_CMD_sunxi-sdimg () {
|
||||
# Burn Partitions
|
||||
dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
|
||||
# If SDIMG_ROOTFS_TYPE is a .xz file use xzcat
|
||||
if [[ "$SDIMG_ROOTFS_TYPE" == *.xz ]]
|
||||
if echo "${SDIMG_ROOTFS_TYPE}" | egrep -q "*\.xz"
|
||||
then
|
||||
xzcat ${SDIMG_ROOTFS} | dd of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user