diff options
author | Chris Lumens <clumens@redhat.com> | 2007-01-16 19:58:13 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-01-16 19:58:13 +0000 |
commit | 8bda00c30726d98f58e392eb66be12b25a7368df (patch) | |
tree | 651a964c73db8ddbab60a0a7f127d9f075f80334 /instdata.py | |
parent | 3527054f5d13b747a35d88cd9536eae2899bf82b (diff) | |
download | anaconda-8bda00c30726d98f58e392eb66be12b25a7368df.tar.gz anaconda-8bda00c30726d98f58e392eb66be12b25a7368df.tar.xz anaconda-8bda00c30726d98f58e392eb66be12b25a7368df.zip |
Oh crap, support for new pykickstart is here. This is too large to explain
in a CVS commit message so just read the ChangeLog or look at the diff. Most
of it is just code reorganization and it's mostly contained in kickstart.py.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/instdata.py b/instdata.py index af26c4fe9..9813b7197 100644 --- a/instdata.py +++ b/instdata.py @@ -82,8 +82,7 @@ class InstallData: else: self.firstboot = FIRSTBOOT_DEFAULT - # XXX I expect this to die in the future when we have a single data - # class and translate ksdata into that instead. + # XXX I still expect this to die when kickstart is the data store. self.ksdata = None def setInstallProgressClass(self, c): @@ -166,19 +165,19 @@ class InstallData: self.rootPassword["isCrypted"], useMD5) if anaconda.isKickstart: - for svc in self.ksdata.services["disabled"]: + for svc in self.ksdata.services.disabled: iutil.execWithRedirect("/sbin/chkconfig", [svc, "off"], stdout="/dev/tty5", stderr="/dev/tty5", root=anaconda.rootPath) - for svc in self.ksdata.services["enabled"]: + for svc in self.ksdata.services.enabled: iutil.execWithRedirect("/sbin/chkconfig", [svc, "on"], stdout="/dev/tty5", stderr="/dev/tty5", root=anaconda.rootPath) - for ud in self.ksdata.userList: + for ud in self.ksdata.user.userList: if self.users.createUser(ud.name, ud.password, ud.isCrypted, ud.groups, ud.homedir, ud.shell, ud.uid, root=anaconda.rootPath) == None: |