summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-10-22 14:36:11 -0400
committerChris Lumens <clumens@redhat.com>2010-10-22 16:01:41 -0400
commit0b4565e1fe8932104d1437249c71ee4bc6539fd6 (patch)
tree8f0834a5ab30d9595da53caf4fe6099845e83a1b /anaconda
parent583753d650f5e44a8581fefc0380ebbca77d1cf4 (diff)
downloadanaconda-0b4565e1fe8932104d1437249c71ee4bc6539fd6.tar.gz
anaconda-0b4565e1fe8932104d1437249c71ee4bc6539fd6.tar.xz
anaconda-0b4565e1fe8932104d1437249c71ee4bc6539fd6.zip
Don't hardcode the sshd location, either.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda5
1 files changed, 3 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index b48310f4b..d3c65a2a7 100755
--- a/anaconda
+++ b/anaconda
@@ -450,8 +450,9 @@ def startSsh():
}
for (algorithm, keyfile) in ssh_keys.items():
createSshKey(algorithm, keyfile)
- args = ["/sbin/sshd", "-f", "/etc/ssh/sshd_config.anaconda"]
- os.execv("/sbin/sshd", args)
+ sshd = iutil.find_program_in_path("sshd")
+ args = [sshd, "-f", "/etc/ssh/sshd_config.anaconda"]
+ os.execv(sshd, args)
sys.exit(1)
def startDebugger(signum, frame):