sdcard_image bbclass: make payload errors non-fatal
authorKoen Kooi <koen@dominion.thruhere.net>
Fri, 4 Nov 2011 14:03:55 +0000 (15:03 +0100)
committerKoen Kooi <koen@dominion.thruhere.net>
Fri, 4 Nov 2011 14:03:55 +0000 (15:03 +0100)
classes/sdcard_image.bbclass

index 281aaddf8a34b074ed100c0f8ba2c11b0f0a5a20..adf026a901211c250da2be10410a51271bc3801d 100644 (file)
@@ -109,7 +109,8 @@ IMAGE_CMD_sdimg () {
        if [ -n ${FATPAYLOAD} ] ; then
                echo "Copying payload into VFAT"
                for entry in ${FATPAYLOAD} ; do
        if [ -n ${FATPAYLOAD} ] ; then
                echo "Copying payload into VFAT"
                for entry in ${FATPAYLOAD} ; do
-                               cp -av ${IMAGE_ROOTFS}$entry ${WORKDIR}/tmp-mnt-boot
+                               # add the || true to stop aborting on vfat issues like not supporting .~lock files
+                               cp -av ${IMAGE_ROOTFS}$entry ${WORKDIR}/tmp-mnt-boot || true
                done
        fi
 
                done
        fi