diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-12-11 13:11:17 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-12-11 16:25:25 +0100 |
commit | 32cdaba9b49b88a1d901e560b33e2e02616821e1 (patch) | |
tree | ed988c99aff64d0c79cc7866d6ca6dc43f2881fc /kickstart.py | |
parent | bb8e6acfcc4f4696cdc2820ef5762f0ed824bbbf (diff) | |
download | anaconda-32cdaba9b49b88a1d901e560b33e2e02616821e1.tar.gz anaconda-32cdaba9b49b88a1d901e560b33e2e02616821e1.tar.xz anaconda-32cdaba9b49b88a1d901e560b33e2e02616821e1.zip |
Bring auto discovered drives online before parsing the ks file
While doing some tests with iscsi and kickstart I noticed that currently
drives discovered through ibft (iscsi), edd (fcoe), or configured in the
rclinux script (zfcp), can not be used in kickstart's clearpart or
ignoredrive commands. This patches fixes this.
Note that the 3 added startup calls are complete no-ops on systems without
ibft / edd-fcoe info / pre configured zfcp.
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index dd7278dbc..189e28797 100644 --- a/kickstart.py +++ b/kickstart.py @@ -1201,6 +1201,12 @@ def parseKickstart(anaconda, file): # We need this so all the /dev/disk/* stuff is set up before parsing. udev_trigger(subsystem="block") + # So that drives onlined by these can be used in the ks file + anaconda.id.storage.iscsi.startup(anaconda.intf) + anaconda.id.storage.fcoe.startup(anaconda.intf) + anaconda.id.storage.zfcp.startup() + # Note we do NOT call dasd.startup() here, that does not online drives, but + # only checks if they need formatting, which requires zerombr to be known try: ksparser.readKickstart(file) |