Red Hat Bugzilla – Bug 53511
fix /etc/rc.sysinit to handle all IDE harddisks
Last modified: 2014-03-16 22:23:23 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.8-xfs i686)
Description of problem:
/etc/rc.sysinit has the code to tweak IDE hard drives using the information
found in /etc/sysconfig/harddisk*. As distributed, it only affects the
first 8 drives. Should be fixed to support all IDE drives which the kernel
I've had to patch this in previous releases as well. Would be nice to get
fixed in the distribution.
Note that it is not too hard go beyond hdh if you only use master and no
slaves on the IDE controllers.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add disk beyond hdh
2. modify /etc/sysconfig/harddisks (or specific file)
3. reboot and see disk settings not take effect
I will attach a patch. Fix is trivial. I've been using it on production
servers for several months.
Created attachment 31516 [details]
patch to fix /etc/rc.sysinit
Oh yeah, since there should never be a /proc/ide/s/media file, I omitted the
for the zeroth drive.
this seems like an easy one to knock off. can it be included in the next
The 's' is there so it sources /etc/sysconfig/harddisks by default... otherwise,
will be added in 6.64-1.
you are correct, iterating over "0" in the for loop is necessary to initialize
the HDFLAGS variable for later use as the default value.
thanks for adding this to the script.