Really die if a library is not found. Also explain how to find out what the missing library is. --- dracut-functions | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dracut-functions b/dracut-functions index 62038f6..e80d786 100755 --- a/dracut-functions +++ b/dracut-functions @@ -68,10 +68,11 @@ inst_binary() { [[ -f $initdir$target ]] && return 0 # I love bash! while read line; do - [[ $line =~ '([^ ]*/lib/[^ ]*\.so[^ ]*)' ]] || continue + [[ $line =~ '([^ ]*/lib/[^ ]*\.so[^ ]*|not found)' ]] || continue FILE=${BASH_REMATCH[1]} - [[ $FILE = not || $NAME = not ]] && { + [[ $FILE = 'not found' ]] && { echo "Missing a shared library required by $bin." >&2 + echo "Run \"ldd $bin\" to find out what it is." >&2 echo "dracut cannot create an initrd." >&2 exit 1 } -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html