summaryrefslogtreecommitdiffstats
path: root/instdata.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-04-24 15:46:31 +0000
committerJeremy Katz <katzj@redhat.com>2003-04-24 15:46:31 +0000
commit0a562126d84c59a113231ae7ab38984f92d62153 (patch)
tree5e87b9094f4ebdc328979e3a0640dee5f1fc40cb /instdata.py
parentdd200d781bd9012f562399c2ee69c23fe60d86b9 (diff)
downloadanaconda-0a562126d84c59a113231ae7ab38984f92d62153.tar.gz
anaconda-0a562126d84c59a113231ae7ab38984f92d62153.tar.xz
anaconda-0a562126d84c59a113231ae7ab38984f92d62153.zip
another taroon merge. tagged before as before-taroon-merge, after as
after-taroon-merge this one adds s390 fixes, basic i/p series platform support, support for multiple kernels and one second stage, cmdline kickstart mode (nice for s390), some warning cleanups.
Diffstat (limited to 'instdata.py')
-rw-r--r--instdata.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/instdata.py b/instdata.py
index ce9523905..a1c5da156 100644
--- a/instdata.py
+++ b/instdata.py
@@ -102,12 +102,17 @@ class InstallData:
def setXSetup(self, xsetup):
self.xsetup = xsetup
+ # expects 0/1
+ def setHeadless(self, isHeadless):
+ self.isHeadless = isHeadless
+
def write(self, instPath):
self.langSupport.write (instPath)
- if self.mouse is not None:
+
+ if not self.isHeadless:
self.mouse.write(instPath)
+ self.keyboard.write (instPath)
- self.keyboard.write (instPath)
self.network.write (instPath)
self.timezone.write (instPath)
self.auth.write (instPath)
@@ -127,10 +132,9 @@ class InstallData:
self.instLanguage.writeKS(f)
self.langSupport.writeKS(f)
- self.keyboard.writeKS(f)
- if self.mouse is not None:
+ if not self.isHeadless:
+ self.keyboard.writeKS(f)
self.mouse.writeKS(f)
- if self.xsetup is not None:
self.xsetup.writeKS(f, self.desktop)
self.network.writeKS(f)
self.rootPassword.writeKS(f, self.auth)
@@ -227,6 +231,7 @@ class InstallData:
self.monitor = None
self.videocard = None
self.xsetup = None
+ self.isHeadless = 0
self.extraModules = extraModules
self.floppyDevice = floppyDevice
self.fsset = fsset.FileSystemSet()