Bug 186438 - In kickstart , ignoredisk option doesn't work with the initlabel flag regarding initialization of drives
Summary: In kickstart , ignoredisk option doesn't work with the initlabel flag regardi...
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: anaconda
Version: 4.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Chris Lumens
QA Contact: Mike McLean
Keywords: Reopened
Depends On:
Blocks: 176344
TreeView+ depends on / blocked
Reported: 2006-03-23 16:13 UTC by Olivier de Liocourt
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2007-05-01 17:19:59 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0215 normal SHIPPED_LIVE anaconda, and rhpl bug fix update 2007-05-01 17:16:50 UTC

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):

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
    def openDevices (self, intf = None, initAll = 0,
                     zeroMbr = 0, clearDevs = []):
        """Open the disks on the system and skip unopenable devices."""
        if self.disks:
        for drive in self.driveList ():
            if drive in DiskSet.skippedDisks and not initAll:
            deviceFile = isys.makeDevInode(drive)

I replaced the 3 last lines above with:
           if drive in DiskSet.skippedDisks and initAll:
            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 Product and 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

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 Yeghiayan 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- .

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.


Note You need to log in before you can comment on or make changes to this bug.