commit: cb705cfd0dc3800a085f5ccba4681b73b1fe2287 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Tue Dec 31 17:18:19 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Tue Dec 31 17:18:19 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cb705cfd
gen_initramfs.sh: create_initramfs(): Make ldconfig failure non-fatal Having up-to-date /etc/ld.so.cache in initramfs is nice to have but not critical and ldconfig is known to fail when running under sandbox. Closes: https://bugs.gentoo.org/704354 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> gen_initramfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 283e308..676b86d 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1811,7 +1811,7 @@ create_initramfs() { print_info 1 "$(get_indent 1)>> Pre-generating initramfs' /etc/ld.so.cache ..." # Need to disable sandbox which doesn't understand chroot(), bug #431038 SANDBOX_ON=0 ldconfig -f /etc/ld.so.conf -r "${TDIR}" 2>/dev/null \ - || gen_die "Failed to pre-generate '${TDIR}/etc/ld.so.cache'!" + || print_warning 1 "Failed to pre-generate '${TDIR}/etc/ld.so.cache'! Probably due to sandbox/permission problem; Ignoring ..." fi find . -print0 | sort -z | "${CPIO_COMMAND}" ${CPIO_ARGS} --reproducible -F "${CPIO_ARCHIVE}" 2>/dev/null \
