diff options
author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-08-24 11:42:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:08:06 +0100 |
commit | 9694c61d44ffc39063e93069f2b8cac0bfef4146 (patch) | |
tree | 17c41eb8bc9637fbbe9a734566682d13f9b6e6ad /meta/recipes-extended/shadow/shadow.inc | |
parent | e141072888eb107af57d168ac75176f80bb2722e (diff) | |
download | poky-9694c61d44ffc39063e93069f2b8cac0bfef4146.tar.gz |
shadow: Avoid nss warning/error with musl
The libnss configuration file is only installed when glibc is used. The
inexistence of it on a musl-based rootfs, will make shadow complain
about it:
Failed opening /etc/nsswitch.conf
This is because shadow will try to use nsswich when dealing with
subordinate IDs and the message is just a warning as the tool will still
generate them correctly in subuid/subgid files.
We drop this log message for class native to avoid an error when rootfs
logs are checked ('Failed' will match the regex bitbake is using to
check for rootfs generation errors).
(From OE-Core rev: 3000840a271534fa907ce0684b81a6d278e64a44)
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/shadow.inc')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index b2f82e9ac7..414bf467ba 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -25,12 +25,14 @@ SRC_URI:append:class-target = " \ | |||
25 | SRC_URI:append:class-native = " \ | 25 | SRC_URI:append:class-native = " \ |
26 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ | 26 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ |
27 | file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ | 27 | file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ |
28 | file://0001-Drop-nsswitch.conf-message-when-not-in-place-eg.-musl.patch \ | ||
28 | " | 29 | " |
29 | SRC_URI:append:class-nativesdk = " \ | 30 | SRC_URI:append:class-nativesdk = " \ |
30 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ | 31 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ |
31 | " | 32 | " |
32 | SRC_URI[sha256sum] = "9fdb73b5d2b44e8ba9fcee1b4493ac75dd5040bda35b9ac8b06570cd192e7ee3" | 33 | SRC_URI[sha256sum] = "9fdb73b5d2b44e8ba9fcee1b4493ac75dd5040bda35b9ac8b06570cd192e7ee3" |
33 | 34 | ||
35 | |||
34 | # Additional Policy files for PAM | 36 | # Additional Policy files for PAM |
35 | PAM_SRC_URI = "file://pam.d/chfn \ | 37 | PAM_SRC_URI = "file://pam.d/chfn \ |
36 | file://pam.d/chpasswd \ | 38 | file://pam.d/chpasswd \ |