From 2777ef50650f69f620c0a8f1adfc225497d6bab8 Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <marta.rybczynska@huawei.com>
Date: Fri, 16 Jul 2021 15:12:56 +0200
Subject: [PATCH] base-file: make the append work without harden distro

The append in the meta-security layer works for a "harden" distro
only. We remove this limit as we do want it by default and we do not
want to rename our distro.

A discussion on the mailing list [1] mentions that we might get
DISTRO_FEATURE in the future.

[1] https://patchwork.openembedded.org/patch/174773/

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
---
 meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend b/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend
index 39563046..df1554ff 100644
--- a/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend
+++ b/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend
@@ -1,4 +1,4 @@
 
-do_install_append_harden () {
+do_install_append () {
     sed -i 's/umask.*/umask 027/g' ${D}/${sysconfdir}/profile
 }
-- 
GitLab