summaryrefslogtreecommitdiffstats
path: root/users.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-11-27 16:08:10 +0000
committerChris Lumens <clumens@redhat.com>2006-11-27 16:08:10 +0000
commit8fd1b8f7cda799504638d702371a2525bbb1cea5 (patch)
tree027b76d4db1fa3a1db29ac11d26f835cbb832746 /users.py
parent695dcc29c976725ed82de58154ca2cb503a6ebc2 (diff)
downloadanaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.tar.gz
anaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.tar.xz
anaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.zip
Set the right home directory so it gets made correctly (#216681).
Diffstat (limited to 'users.py')
-rw-r--r--users.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/users.py b/users.py
index 3b44127e3..a9a4c251b 100644
--- a/users.py
+++ b/users.py
@@ -78,7 +78,10 @@ class Users:
homedir = "/home/" + name
# Do this to make the user's home dir under the install root.
- userEnt.set(libuser.HOMEDIRECTORY, os.path.join(root, homedir))
+ if homedir[0] != "/":
+ userEnt.set(libuser.HOMEDIRECTORY, root + "/" + homedir)
+ else:
+ userEnt.set(libuser.HOMEDIRECTORY, root + homedir)
if shell:
userEnt.set(libuser.LOGINSHELL, shell)