diff options
author | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:22:24 +0200 |
---|---|---|
committer | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:22:24 +0200 |
commit | 3d43330b33ca6e802b287afb552409fac7e0de51 (patch) | |
tree | a44831bd78c24a5c04186315fd417ff32637b109 | |
parent | 0ee5e387d90384f5597c376457a13a57aad49eb7 (diff) | |
download | anaconda-3d43330b33ca6e802b287afb552409fac7e0de51.tar.gz anaconda-3d43330b33ca6e802b287afb552409fac7e0de51.tar.xz anaconda-3d43330b33ca6e802b287afb552409fac7e0de51.zip |
Add ibft flag to ease in testing.
Forward port of rhel-5 patch from pjones, commit-id:
5a44a5a6bc90fdf056db1e9e2d4191703387c15f
-rwxr-xr-x | anaconda | 5 | ||||
-rw-r--r-- | flags.py | 1 | ||||
-rw-r--r-- | iscsi.py | 3 |
3 files changed, 8 insertions, 1 deletions
@@ -264,6 +264,8 @@ def parseOptions(): op.add_option("--nodmraid", dest="dmraid", action="store_false", default=True) op.add_option("--dmraid", action="store_true") + op.add_option("--noibft", dest="ibft", action="store_false", default=True) + op.add_option("--ibft", action="store_true") op.add_option("--noiscsi", dest="iscsi", action="store_false", default=False) op.add_option("--iscsi", action="store_true") @@ -699,6 +701,9 @@ if __name__ == "__main__": if len(cargs[1]) > 0: vncS.vncconnectport = cargs[1] + if opts.ibft: + flags.ibft = 1 + if opts.iscsi: flags.iscsi = 1 @@ -64,6 +64,7 @@ class Flags: self.__dict__['flags']['test'] = 0 self.__dict__['flags']['rootpath'] = 0 self.__dict__['flags']['livecdInstall'] = 0 + self.__dict__['flags']['ibft'] = 1 self.__dict__['flags']['iscsi'] = 0 self.__dict__['flags']['serial'] = 0 self.__dict__['flags']['setupFilesystems'] = 1 @@ -207,7 +207,8 @@ class iscsi(object): # automatically attach to it. Do this before testing the initiator # name, because it is provided by the iBFT too - self.loginToDefaultDrive() + if flags.ibft: + self.loginToDefaultDrive() def _getInitiator(self): if self._initiator != "": |