1 From 5c7b171f77e4456b4b7ff0b1125e68594cf8a710 Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Fri, 20 Sep 2019 14:25:45 +0800
4 Subject: [PATCH] image-live.bbclass: work around for large image size
6 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
8 meta/classes/image-live.bbclass | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-)
11 diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
12 index 54058b3..bd607aa 100644
13 --- a/meta/classes/image-live.bbclass
14 +++ b/meta/classes/image-live.bbclass
15 @@ -229,9 +229,10 @@ build_hddimg() {
16 # exceeds 4GB, it is the single file's max size of FAT fs.
17 if [ -f ${HDDDIR}/rootfs.img ]; then
18 rootfs_img_size=`stat -c '%s' ${HDDDIR}/rootfs.img`
19 - max_size=`expr 4 \* 1024 \* 1024 \* 1024`
20 + max_size=`expr 8 \* 1024 \* 1024 \* 1024`
21 if [ $rootfs_img_size -ge $max_size ]; then
22 - bberror "${HDDDIR}/rootfs.img rootfs size is greather than or equal to 4GB,"
23 + bberror "${HDDDIR}/rootfs.img rootfs size is $rootfs_img_size,"
24 + bberror "which is greather than or equal to 4GB($max_size),"
25 bberror "and this doesn't work on a FAT filesystem. You can either:"
26 bberror "1) Reduce the size of rootfs.img, or,"
27 bbfatal "2) Use wic, vmdk or vdi instead of hddimg\n"