Bug 186438

Summary: In kickstart , ignoredisk option doesn't work with the initlabel flag regarding initialization of drives
Product: Red Hat Enterprise Linux 4 Reporter: Olivier de Liocourt <liocourt>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: syeghiay, tao
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0215 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 17:19:59 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:
Bug Depends On:    
Bug Blocks: 176344    

Description Olivier de Liocourt 2006-03-23 16:13:56 UTC
Description of problem:
There is an undocumented option(BZ 164787) called "ignoredisk --drives=sdb,sdc"
that can be passed in a KS file to ignore everything regarding the concerned
devices, which works well, excepted regarding the --initlabel option which tries
to initialize all drives visible to the machine.

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

How reproducible:
create a KS file with the options indicated above in it, and try to install
RHEL4 U3 on a brand new harddisk. The page regarding the initialization of the
drives which should be ignored come up for the ignored listed devices, but
should not.

Additional info:
It seems that the openDevices function in partedUtils.py is responsible of this
issue:
    def openDevices (self, intf = None, initAll = 0,
                     zeroMbr = 0, clearDevs = []):
        """Open the disks on the system and skip unopenable devices."""
        if self.disks:
            return
        for drive in self.driveList ():
            if drive in DiskSet.skippedDisks and not initAll:
                continue
            deviceFile = isys.makeDevInode(drive)


I replaced the 3 last lines above with:
           if drive in DiskSet.skippedDisks and initAll:
                DiskSet.skippedDisks.append(drive)
                continue
            deviceFile = isys.makeDevInode(drive)

It seems to fix the problem, but maybe I am wrong somewhere.

Comment 1 Chris Lumens 2006-03-23 20:15:34 UTC
Fixed in Rawhide and will be in RHEL5.  If you need a fix for this in an update
release, we'll need to go through the procedure for getting it on the list for U5.

Comment 4 RHEL Program Management 2006-08-18 16:24:01 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Peter Jones 2006-08-28 15:24:13 UTC

*** This bug has been marked as a duplicate of 198525 ***

Comment 12 Chris Lumens 2007-03-08 16:46:31 UTC
Committed a fix to the RHEL4 branch.

Comment 13 Suzanne Logcher 2007-04-11 21:38:47 UTC
While a fix was committed to CVS, it was not built in brew and thus did not make
it into RHEL 4.5.
Moved to 4.6 since it is too late to resolve in 4.5.

Comment 16 Peter Jones 2007-04-13 20:40:34 UTC
should be fixed in anaconda-10.1.1.63-4 .

Comment 19 Red Hat Bugzilla 2007-05-01 17:19:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0215.html