summaryrefslogtreecommitdiffstats
path: root/flags.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-10-22 10:55:31 -0400
committerPeter Jones <pjones@redhat.com>2009-10-28 09:34:39 -0400
commit0a2719877ea6884ab2232cd1614baf7bbfc07497 (patch)
tree1fc91367b148a4c0067af1cdd6a6201bbcd55390 /flags.py
parent0d974cb8a7cee879de6695b8b09c9f61c2c99a12 (diff)
downloadanaconda-0a2719877ea6884ab2232cd1614baf7bbfc07497.tar.gz
anaconda-0a2719877ea6884ab2232cd1614baf7bbfc07497.tar.xz
anaconda-0a2719877ea6884ab2232cd1614baf7bbfc07497.zip
Add sshd support for non-s390 platforms.
This leaves the sshd support on the s390 intact and functional (testing needed), and at the same time add the ability to ssh in and get a terminal on non-s390 platforms.
Diffstat (limited to 'flags.py')
-rw-r--r--flags.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/flags.py b/flags.py
index ce77621eb..93472e345 100644
--- a/flags.py
+++ b/flags.py
@@ -86,17 +86,19 @@ class Flags:
self.__dict__['flags']['cmdline'] = self.createCmdlineDict()
self.__dict__['flags']['useIPv4'] = True
self.__dict__['flags']['useIPv6'] = True
+ self.__dict__['flags']['sshd'] = 1
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
# do things like bogl on them. this preserves what that
# device is
self.__dict__['flags']['virtpconsole'] = None
- if self.__dict__['flags']['cmdline'].has_key("selinux"):
- if self.__dict__['flags']['cmdline']["selinux"]:
- self.__dict__['flags']['selinux'] = 1
- else:
- self.__dict__['flags']['selinux'] = 0
+ for x in ['selinux','sshd']:
+ if self.__dict__['flags']['cmdline'].has_key(x):
+ if self.__dict__['flags']['cmdline'][x]:
+ self.__dict__['flags'][x] = 1
+ else:
+ self.__dict__['flags'][x] = 0
if self.__dict__['flags']['cmdline'].has_key("debug"):
self.__dict__['flags']['debug'] = self.__dict__['flags']['cmdline']['debug']