From 2471135b256400c4bdd72f84ad28aacce19de73d Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Jul 2021 12:33:18 +0100
Subject: [PATCH] ohos-image.bbclass: Enable read-only rootfs by default

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-ohos-core/classes/ohos-image.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-ohos-core/classes/ohos-image.bbclass b/meta-ohos-core/classes/ohos-image.bbclass
index 597d119e..5a6394d5 100644
--- a/meta-ohos-core/classes/ohos-image.bbclass
+++ b/meta-ohos-core/classes/ohos-image.bbclass
@@ -17,6 +17,8 @@ systemd_mask_getty () {
 
 IMAGE_PREPROCESS_COMMAND_append = " ${@ 'systemd_mask_getty;' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and not bb.utils.contains('IMAGE_FEATURES', 'stateless-rootfs', True, False, d) else ''}"
 
+IMAGE_FEATURES_append = " read-only-rootfs"
+
 # Convert all KERNEL_DEVICETREE enties to IMAGE_BOOT_FILES entries
 def dtb_boot_files(d):
     k_dt = d.getVar('KERNEL_DEVICETREE')
-- 
GitLab