From a46cf8bc34145d38c7066a322dce52d972adc724 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Mon, 5 Sep 2022 13:08:43 +0200
Subject: [PATCH] shadow: Remove local subid support as it was merged in
 oe-core

Merged in oe-core, kirkstone 5cdc9c1809ef169b8af7ce3085f316d1e68eb7ec.
This revision is included in the last oe-core bump.

Related to https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/772

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend b/meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend
index 2909fbc3..ef4edf6a 100644
--- a/meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend
+++ b/meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend
@@ -10,11 +10,3 @@
 # -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode
 # while keeping shadow building.
 TARGET_CFLAGS:remove = "-Werror=format-nonliteral"
-
-do_install:append () {
-	# usermod requires the subuid/subgid files to be in place before being
-	# able to use the -v/-V flags otherwise it fails:
-	# usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
-	touch ${D}${sysconfdir}/subuid
-	touch ${D}${sysconfdir}/subgid
-}
-- 
GitLab