diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-05 17:04:47 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-05 17:04:47 +0000 |
commit | 20456e3a62ec51c80e179db5293a28bdf6a6ecc4 (patch) | |
tree | 6a7216d290420d493d02257ccef0770dc5ce4cc2 /backend.py | |
parent | 3907e3f9b5d377ac522467fea8932dc2afd1edfa (diff) | |
download | anaconda-20456e3a62ec51c80e179db5293a28bdf6a6ecc4.tar.gz anaconda-20456e3a62ec51c80e179db5293a28bdf6a6ecc4.tar.xz anaconda-20456e3a62ec51c80e179db5293a28bdf6a6ecc4.zip |
Move account creation to where the root password is set, since it's the
same sort of stuff anyway. Don't run libuser.admin until after /etc/shadow
has been created in the install root so root's password gets set.
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/backend.py b/backend.py index d2f95bdf7..c379a7709 100644 --- a/backend.py +++ b/backend.py @@ -51,25 +51,6 @@ class AnacondaBackend: if flags.setupFilesystems: syslog.stop() - if anaconda.isKickstart: - for svc in anaconda.id.ksdata.services["disabled"]: - iutil.execWithRedirect("/sbin/chkconfig", - ["/sbin/chkconfig", svc, "off"], - stdout="/dev/tty5", stderr="/dev/tty5", - root="/mnt/sysimage") - - for svc in anaconda.id.ksdata.services["enabled"]: - iutil.execWithRedirect("/sbin/chkconfig", - ["/sbin/chkconfig", svc, "on"], - stdout="/dev/tty5", stderr="/dev/tty5", - root="/mnt/sysimage") - - for ud in anaconda.id.ksdata.userList: - if anaconda.id.users.createUser(ud.name, ud.password, ud.isCrypted, - ud.groups, ud.homedir, ud.shell, - ud.uid) == None: - log.error("User %s already exists, not creating." % ud.name) - def doInstall(self, anaconda): pass @@ -190,5 +171,5 @@ def writeConfiguration(anaconda): log.info("Writing main configuration") if not flags.test: anaconda.backend.writeConfiguration() - anaconda.id.write(anaconda.rootPath) + anaconda.id.write(anaconda) |