diff options
-rw-r--r-- | meta/classes/bootimg.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index dbbf046d3a..ebc927edc7 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -227,6 +227,12 @@ build_fat_img() { | |||
227 | FATSIZE="-F 32" | 227 | FATSIZE="-F 32" |
228 | fi | 228 | fi |
229 | 229 | ||
230 | # mkdosfs will fail if ${FATIMG} exists. Since we are creating an | ||
231 | # new image, it is safe to delete any previous image. | ||
232 | if [ -e ${FATIMG} ]; then | ||
233 | rm ${FATIMG} | ||
234 | fi | ||
235 | |||
230 | if [ -z "${HDDIMG_ID}" ]; then | 236 | if [ -z "${HDDIMG_ID}" ]; then |
231 | mkdosfs ${FATSIZE} -n ${BOOTIMG_VOLUME_ID} -S 512 -C ${FATIMG} \ | 237 | mkdosfs ${FATSIZE} -n ${BOOTIMG_VOLUME_ID} -S 512 -C ${FATIMG} \ |
232 | ${BLOCKS} | 238 | ${BLOCKS} |