diff options
author | Chris Lumens <clumens@redhat.com> | 2005-11-07 20:56:58 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-11-07 20:56:58 +0000 |
commit | 0b9fec7bf06d8c9ed00d545c3e1d9ec2ca1c5475 (patch) | |
tree | c5cbadbac8dcda6b30c7fab051cfc2b74abe12b0 /instdata.py | |
parent | 8e5100ebaa4701d2c5d836b4125a8b755ac13667 (diff) | |
download | anaconda-0b9fec7bf06d8c9ed00d545c3e1d9ec2ca1c5475.tar.gz anaconda-0b9fec7bf06d8c9ed00d545c3e1d9ec2ca1c5475.tar.xz anaconda-0b9fec7bf06d8c9ed00d545c3e1d9ec2ca1c5475.zip |
It helps to have the right path to authconfig. Also, the right argument
list.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/instdata.py b/instdata.py index a2c95b35b..dc233f68d 100644 --- a/instdata.py +++ b/instdata.py @@ -36,6 +36,9 @@ from constants import * from rhpl.simpleconfig import SimpleConfigFile import rhpl.keyboard as keyboard +import logging +log = logging.getLogger("anaconda") + # Collector class for all data related to an install/upgrade. class InstallData: @@ -55,7 +58,7 @@ class InstallData: self.timezone = timezone.Timezone() self.accounts = users.Accounts() self.rootPassword = users.RootPassword () - self.auth = "" + self.auth = "--enableshadow --enablemd5" self.desktop = desktop.Desktop() self.grpset = None self.upgrade = False @@ -122,14 +125,14 @@ class InstallData: try: if flags.setupFilesystems: - args = ["--update", "--nostart", self.auth] - iutil.execWithRedirect("/usr/sbin/authconfig", args, + args = ["/usr/bin/authconfig", "--update", "--nostart"] + self.auth.split() + iutil.execWithRedirect("/usr/bin/authconfig", args, stdout = None, stderr = None, searchPath = 1, root = instPath) else: - log.error("Would have run: /usr/sbin/authconfig %s", args) + log.error("Would have run: /usr/bin/authconfig %s", args) except RuntimeError, msg: - log.error("Error running /usr/sbin/authconfig %s: %s", + log.error("Error running /usr/bin/authconfig %s: %s", args, msg) self.firewall.write (instPath) |