Bug 58421

Summary: rc.sysinit ignores cdrom
Product: [Retired] Red Hat Linux Reporter: Hiroki Taira <hiroki>
Component: SysVinitAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-24 06:59:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hiroki Taira 2002-01-16 10:33:51 UTC
Description of Problem:
/etc/rc.sysinit ignores /etc/sysconfig/harddisk* if it's media is cdrom.

Version-Release number of selected component (if applicable):


How Reproducible:
It is found when trying to configure ATAPI CDROM

Steps to Reproduce:
for example, /dev/hdc is ATAPA CDROM and want to make cdrom PIO mode.

1. copy /etc/sysconfig/harddisks to /etc/sysconfig/harddiskhdc
2. rewrite harddiskhdc

USE_DMA=0

3. reboot machine
4. show the result of /sbin/hdparm /dev/hdc

 using_dma    =  1 (on)

Actual Results:
Values described in harddisk* is not enabled

Expected Results:

rc.sysinit can't configure ATAPI CDROM

Additional Information:

It is ok if rc.sysinit detects cdrom.

rc.sysinit at 385
before              if [ "$hdmedia" = "disk" ]; then
---
fixed              if [ "$hdmedia" = "disk" -o "$hdmedia" = "cdrom" ]; then

Comment 1 Bill Nottingham 2002-07-19 01:36:15 UTC
This was fixed in the 7.3 initscripts.