diff options
author | Peter Jones <pjones@redhat.com> | 2009-10-22 10:55:31 -0400 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2009-10-28 09:34:39 -0400 |
commit | 0a2719877ea6884ab2232cd1614baf7bbfc07497 (patch) | |
tree | 1fc91367b148a4c0067af1cdd6a6201bbcd55390 /flags.py | |
parent | 0d974cb8a7cee879de6695b8b09c9f61c2c99a12 (diff) | |
download | anaconda-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.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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'] |