dracut/install
Mike Gilbert 6d886bb74d dracut-install: simplify ldd parsing logic
The previous logic would not handle absolute paths on the left side of
the "=>" properly. For example, on Gentoo ARM64, ldd outputs this:

	/lib/ld-linux-aarch64.so.1 => /lib64/ld-linux-aarch64.so.1

At runtime, the kernel tries to load the file from /lib, and fails if we
only provide it in /lib64.

Instead of looking for the first slash after the "=>", just look for the
first slash, period. This would fail if we somehow had a relative path
on the left side (foo/libbar.so), but I'm not aware of any binaries that
would contain such an entry in DT_NEEDED.

Bug: https://bugs.gentoo.org/667752
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2018-10-09 13:38:47 +02:00
..
.kateconfig add kate and emacs per directory config files 2014-08-29 13:38:47 +02:00
Makefile move dracut-install to dracutbasedir 2012-07-02 18:52:49 +02:00
dracut-install.c dracut-install: simplify ldd parsing logic 2018-10-09 13:38:47 +02:00
hashmap.c remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
hashmap.h remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
hashmap.lo install/*: add dracut-install tool 2012-06-29 12:54:38 +02:00
log.c remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
log.h remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
macro.h remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
strv.c remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
strv.h remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
util.c remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
util.h install: avoid non-portable __WORDSIZE 2018-09-10 09:45:22 +02:00