Skip to content
Snippets Groups Projects
Commit c3a92bc2 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

oniro-linux.conf: Avoid removing shadow for ro filesystems


There are files in shadow (for example subid files) that are required at
runtime too - for example for podman rootless support. Make sure this
package is not removed even when disto/image is dealing with a ro
rootfs.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent d7ce8aa9
No related branches found
No related tags found
1 merge request!204Integrate podman in Oniro
......@@ -111,3 +111,12 @@ DISTRO_FEATURES_FILTER_NATIVESDK:append = " openharmony"
require conf/distro/include/openharmony.inc
# OpenHarmony requires musl libc, so we cannot allow other TCLIBC values
TCLIBC:df-openharmony = "musl"
# The libnss configuration file is only installed when glibc is used. The
# innexistence of it on a musl-based rootfs, will make shadow complain about
# it.
IMAGE_LOG_CHECK_EXCLUDES:libc-musl += "Failed opening /etc/nsswitch.conf"
# We run a read-only rootfs but we want shadow because it includes subid
# configuration used by podman in rootless mode.
ROOTFS_RO_UNNEEDED:remove = "shadow"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment