diff options
author | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:27:58 +0200 |
---|---|---|
committer | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:27:58 +0200 |
commit | 5a9428a2eb003e42ac76d774b9f976df313ca179 (patch) | |
tree | c664931a816e238a2dbb148d1548d842ee875c4e /iscsi.py | |
parent | 3d43330b33ca6e802b287afb552409fac7e0de51 (diff) | |
download | anaconda-5a9428a2eb003e42ac76d774b9f976df313ca179.tar.gz anaconda-5a9428a2eb003e42ac76d774b9f976df313ca179.tar.xz anaconda-5a9428a2eb003e42ac76d774b9f976df313ca179.zip |
Make iBFT reading explicit from a higher level
Make iBFT reading explicit from a higher level, so the target list doesn't get
obliterated in the anaconda.id.reset() path.
Forward port from rhel-5 patch by pjones, commit id:
0c566de27f4beb311baef2c49761924ced188da2
Diffstat (limited to 'iscsi.py')
-rw-r--r-- | iscsi.py | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -201,14 +201,6 @@ class iscsi(object): if self.fwinfo and self.fwinfo.has_key("iface.initiatorname"): self._initiator = self.fwinfo["iface.initiatorname"] self.initiatorSet = True - self.startup() - - # If there is a default drive in the iSCSI configuration, then - # automatically attach to it. Do this before testing the initiator - # name, because it is provided by the iBFT too - - if flags.ibft: - self.loginToDefaultDrive() def _getInitiator(self): if self._initiator != "": @@ -406,6 +398,15 @@ class iscsi(object): # make a new target self.addTarget(**values) + + def startIBFT(self): + # If there is a default drive in the iSCSI configuration, then + # automatically attach to it. Do this before testing the initiator + # name, because it is provided by the iBFT too + + if flags.ibft: + self.loginToDefaultDrive() + def startup(self, intf = None): if not has_iscsi(): return |