Dracut crashes and refuses to generate the initramfs when /etc/ld.so.conf.d/ is an empty directory. Reproducible: Always Steps to Reproduce: 1. Compile kernel 2. ACCEPT_KEYWORDS="~platform" emerge =dracut-009-r1 3. dracut -f -H --kernel-only /boot/dracut-$(kernel_version) Actual Results: I: *** Including module: dash *** I: *** Including module: i18n *** I: *** Including module: kernel-modules *** I: *** Including module: resume *** I: *** Including module: rootfs-block *** I: *** Including module: terminfo *** I: *** Including module: udev-rules *** I: *** Including module: base *** I: *** Including modules' done *** F: Failed to install /etc/ld.so.conf.d/* Expected Results: I: *** Including module: dash *** I: *** Including module: i18n *** I: *** Including module: kernel-modules *** I: *** Including module: resume *** I: *** Including module: rootfs-block *** I: *** Including module: terminfo *** I: *** Including module: udev-rules *** I: *** Including module: base *** I: *** Including modules' done *** I: Wrote /boot/dracut-$(kernel_version): I: -rw-r--r-- 1 root root 107043 1 avril 20:45 /boot/dracut-$(kernel_version) Replace line 526 dracut_install /etc/ld.so.conf /etc/ld.so.conf.d/* with if [ $(ls /etc/ld.so.conf/*.conf 2>/dev/null) ]; then dracut_install /etc/ld.so.conf /etc/ld.so.conf.d/* else dracut_install /etc/ld.so.conf fi Report the "bug" to mainstream devellopers
Thank you for the report. I've included the fix in 010-r1. Patch is posted to upstream mailing list, as always.
Really yesterday i wanted to name this report "1st april bug". But I didn't in case nobody would consider it. Nice to see it was helpful and thanks for your quick reaction for fixing this "1st april bug" in 010-r1.
(In reply to comment #2) > Really yesterday i wanted to name this report "1st april bug". > But I didn't in case nobody would consider it. > Nice to see it was helpful and thanks for your quick reaction for fixing this > "1st april bug" in 010-r1. So… you had me? :-( ;-) Fixed, no remarks, closing.