From 2458fe20da0b0c325289035a3156cf01b28a475c Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 20 Jun 2022 23:14:33 -0700 Subject: [PATCH] chrootsetup_linux.sh: include libnss_files.so* in chroot In addition to libnss_compat.so*, newer systems also require libnss_files.so* as well. Arrange to pull in the libnss_files.so* libraries if they exist and otherwise behave as before. --- chrootsetup_linux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrootsetup_linux.sh b/chrootsetup_linux.sh index 1bbc517..5289a13 100644 --- a/chrootsetup_linux.sh +++ b/chrootsetup_linux.sh @@ -122,6 +122,12 @@ pull_in_lib() { (pull_in_lib "$nlib" "$2") test $? -eq 0 done + # grab libnss_files.so* from libc location + ! has_files "$(dirname "$1")/libnss_files."so* || + for nlib in "$(dirname "$1")/libnss_files."so*; do + (pull_in_lib "$nlib" "$2") + test $? -eq 0 + done esac } -- 2.11.4.GIT