commit: 4d7d4e146bbecf6cc039ce3e5cdf89a91b751f4e Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Mon Sep 4 05:42:35 2017 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Mon Sep 4 05:42:35 2017 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=4d7d4e14
gen_initramfs: catch lddtree failure. Fixes: https://bugs.gentoo.org/show_bug.cgi?id=618056 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> gen_initramfs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 62a88c8..2be35c4 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -39,11 +39,13 @@ copy_binaries() { # lddtree does not have the -V (version) nor the -l (list) options prior to version 1.18 ( if lddtree -V > /dev/null 2>&1 ; then - lddtree -l "$@" + lddtree -l "$@" \ + || gen_die "Binary ${f} or some of its library dependencies could not be copied" else lddtree "$@" \ | tr ')(' '\n' \ - | awk '/=>/{ if($3 ~ /^\//){print $3}}' + | awk '/=>/{ if($3 ~ /^\//){print $3}}' \ + || gen_die "Binary ${f} or some of its library dependencies could not be copied" fi ) \ | sort \ | uniq \
