From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1D50F138335 for ; Sat, 14 Dec 2019 00:26:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47C64E089C; Sat, 14 Dec 2019 00:26:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F94CE089C for ; Sat, 14 Dec 2019 00:26:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D814D34D97E for ; Sat, 14 Dec 2019 00:26:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B64B903 for ; Sat, 14 Dec 2019 00:26:49 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1576282122.5ccd38ac55cb01300066b5c141c48843b15ed2fe.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 5ccd38ac55cb01300066b5c141c48843b15ed2fe X-VCS-Branch: master Date: Sat, 14 Dec 2019 00:26:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 655b9f87-75bc-4628-b0ba-71b3ee54f8f0 X-Archives-Hash: 0f5937daf43b7e70b4cc56ed87dd53d3 commit: 5ccd38ac55cb01300066b5c141c48843b15ed2fe Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Dec 13 22:38:06 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Dec 14 00:08:42 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=5ccd38ac gen_initramfs.sh: append_dropbear(): Only include libnss_files.so on glibc based CHOST libnss_files.so is for example is not available on musl. Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 4ecdef5..6bc8777 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1324,9 +1324,12 @@ append_dropbear() { fi fi - local libdir=$(get_chost_libdir) - mkdir -p "${TDIR}"/lib || gen_die "Failed to create '${TDIR}/lib'!" - copy_system_binaries "${TDIR}"/lib "${libdir}"/libnss_files.so + if isTrue "$(is_glibc)" + then + local libdir=$(get_chost_libdir) + mkdir -p "${TDIR}"/lib || gen_die "Failed to create '${TDIR}/lib'!" + copy_system_binaries "${TDIR}"/lib "${libdir}"/libnss_files.so + fi cd "${TDIR}" || gen_die "Failed to chdir to '${TDIR}'!"