summaryrefslogtreecommitdiffstats
path: root/meta/classes/bootimg.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r--meta/classes/bootimg.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index 605edc911e..ab1d1bdd33 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -249,6 +249,19 @@ build_hddimg() {
249 efi_hddimg_populate ${HDDDIR} 249 efi_hddimg_populate ${HDDDIR}
250 fi 250 fi
251 251
252 # Check the size of ${HDDDIR}/rootfs.img, error out if it
253 # exceeds 4GB, it is the single file's max size of FAT fs.
254 if [ -f ${HDDDIR}/rootfs.img ]; then
255 rootfs_img_size=`stat -c '%s' ${HDDDIR}/rootfs.img`
256 max_size=`expr 4 \* 1024 \* 1024 \* 1024`
257 if [ $rootfs_img_size -gt $max_size ]; then
258 bberror "${HDDDIR}/rootfs.img execeeds 4GB,"
259 bberror "this doesn't work on FAT filesystem, you can try either of:"
260 bberror "1) Reduce the size of rootfs.img"
261 bbfatal "2) Use iso, vmdk or vdi to instead of hddimg\n"
262 fi
263 fi
264
252 build_fat_img ${HDDDIR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg 265 build_fat_img ${HDDDIR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg
253 266
254 if [ "${PCBIOS}" = "1" ]; then 267 if [ "${PCBIOS}" = "1" ]; then