From 9f43f9c7834c04f44ad1bb58eac3abd5998f23f5 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 20 May 2021 13:07:14 +0100
Subject: [PATCH] blueprint-dashboard-gateway-image: Increase free space to
 500MiB

With the current configuration, the root filesystem can easily get into
an out of space state due to Epiphany downloading Google Safe Browsing
database. This can be more than 200MiB. This change bumps to 500MiB root
free space.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../images/blueprint-dashboard-gateway-image.bb            | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-ohos-blueprints/recipes-core/images/blueprint-dashboard-gateway-image.bb b/meta-ohos-blueprints/recipes-core/images/blueprint-dashboard-gateway-image.bb
index df245f6f..7f126225 100644
--- a/meta-ohos-blueprints/recipes-core/images/blueprint-dashboard-gateway-image.bb
+++ b/meta-ohos-blueprints/recipes-core/images/blueprint-dashboard-gateway-image.bb
@@ -18,8 +18,11 @@ IMAGE_INSTALL_append = "\
 	weston-init \
 	"
 
-# 100 MiB of additional storage for config and runtime data.
-IMAGE_ROOTFS_EXTRA_SPACE = "102400"
+# 500 MiB of additional storage for config and runtime data.
+# We need a bit more because Google Safe Browsing database case easily go to
+# around 200MiB.
+# https://gitlab.gnome.org/GNOME/epiphany/-/issues/477
+IMAGE_ROOTFS_EXTRA_SPACE = "524288"
 
 # This is a workaround in case the build runs on ZFS with compression on.
 # It also gives us extra runtime space.
-- 
GitLab