Created attachment 363970 [details] do not initialize dmraid if no raid disks are found Description of problem: During boot I get these messages (from boot.log): failed to stat() /dev/mapper/no failed to stat() /dev/mapper/raid failed to stat() /dev/mapper/disks I found the cause in /etc/rc.d/rc.sysinit in dmraid setup. I do not have any dmraid partitions on my system. It was probably caused by the recent fix for bug 524355. Version-Release number of selected component (if applicable): initscripts-9.00-1.x86_64 How reproducible: always Steps to Reproduce: 1. boot on a system where dmraid is not used 2. look at /var/log/boot.log Actual results: the above mentioned errors Expected results: no errors Additional info: I am attaching a proposed patch.
Good one, ack
*** Bug 527553 has been marked as a duplicate of this bug. ***
Created attachment 364016 [details] slightly different patch Relying on dmraid to consistently have that exact error message seems like a bad idea. Here's a slightly different approach - this works for me on a non-dmraid box. Hans - does this work for you with dmraid?
(In reply to comment #3) > Relying on dmraid to consistently have that exact error message seems like a > bad idea. Perhaps. Notice that dracut relies on the exact error message too. In /usr/share/dracut/modules.d/90dmraid/dmraid.sh: SETS=$(dmraid -c -s) if [ "$SETS" = "no raid disks" ]; then return fi
(In reply to comment #4) > (In reply to comment #3) > > Relying on dmraid to consistently have that exact error message seems like a > > bad idea. > > Perhaps. Notice that dracut relies on the exact error message too. In > /usr/share/dracut/modules.d/90dmraid/dmraid.sh: > And does F-11 rc.sysinit (it pipes the output of dmraid through: egrep -iv "^no " As said this is my bad, I introduced this with the patch from bug 524355. I agree this is not pretty though.
Note I filed a bug with part of the same patch for RHEL-5 too (but cannot find it atm), that has this issue too.
I've tested the patch from comment #3, and it works fine on a system with raidsets. Note that it is safe to simply rely on the "no raid disks" string though, dmraid does not come with any translations, I don't even think it uses gettext at all. This would safe us forking of and execing awk, I know things like this are not really the bottle neck when booting, but small things like this do add up over the overall boot.
*** Bug 528098 has been marked as a duplicate of this bug. ***
OK, original patch merged in http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=383fc9e4ed80c339339a91feeb3736ff637e84b8.
This is marked CLOSED RAWHIDE, but Rawhide has still only 9.00. The fix is in 9.01. Bill, are you going to ask rel-eng to tag 9.01 for dist-f12?
Either that or 9.02 (not yet released) in the next couple of days.
*** Bug 530657 has been marked as a duplicate of this bug. ***
*** Bug 568790 has been marked as a duplicate of this bug. ***