summaryrefslogtreecommitdiffstats
path: root/iscsi.py
diff options
context:
space:
mode:
authorHans de Goede <hans@localhost.localdomain>2008-09-15 10:27:58 +0200
committerHans de Goede <hans@localhost.localdomain>2008-09-15 10:27:58 +0200
commit5a9428a2eb003e42ac76d774b9f976df313ca179 (patch)
treec664931a816e238a2dbb148d1548d842ee875c4e /iscsi.py
parent3d43330b33ca6e802b287afb552409fac7e0de51 (diff)
downloadanaconda-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.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/iscsi.py b/iscsi.py
index ce2c8b6dc..482e2c0ba 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -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