Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361603 - sys-kernel/dracut-009-r1 fails when /etc/ld.so.conf.d/ is an empty directory
Summary: sys-kernel/dracut-009-r1 fails when /etc/ld.so.conf.d/ is an empty directory
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 13:49 UTC by Samuel Bauer
Modified: 2011-04-02 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2011-04-01 13:49:40 UTC
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
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-04-01 22:58:17 UTC
Thank you for the report. I've included the fix in 010-r1. Patch is posted to upstream mailing list, as always.
Comment 2 Samuel Bauer 2011-04-02 02:47:13 UTC
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.
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-04-02 16:18:20 UTC
(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.