Open aafeijoo-suse opened 1 year ago
I think we should review all break
cases and consider continue
one-by-one in that function.
If we replace that
break
with acontinue
,dracut-install
continues parsing theldd
output and the missing libraries are included to the initrd.This code was added in 4916dfc2, is there any reason why dracut should not continue parsing the
ldd
output?
AFAIR there isn't any. I'm pretty sure I just copied the preceding check.
I think we should review all break cases and consider continue one-by-one in that function.
We haven't had a complaint for years and now we receive 2 similar bug reports (#2190 upstream and this one at SUSE) in a month, good timing :)
AFAIR there isn't any. I'm pretty sure I just copied the preceding check.
Ok, thanks for your feedback. I'll test it a little more before submitting a PR.
This is not a regression, it was reported for dracut-044, our oldest supported version.
Describe the bug If
/etc/ld.so.preload
contains a missing library, dracut does not add all the required libraries to the initrd.Distribution used openSUSE Tumbleweed
Dracut version dracut 059+suse.360.g2e0ed5f7-1.1
Init system systemd
To Reproduce
Additional context This issue is similar to the one fixed by #2193:
https://github.com/dracutdevs/dracut/blob/1ddcb137ea2a4d79491ff94f1f7802dcaa7ac381/src/install/dracut-install.c#L605-L606
If we replace that
break
with acontinue
,dracut-install
continues parsing theldd
output and the missing libraries are included to the initrd.This code was added in https://github.com/dracutdevs/dracut/commit/4916dfc2, is there any reason why dracut should not continue parsing the
ldd
output?CC: @dtardon