summaryrefslogtreecommitdiffstats
path: root/src/py-libs/backend.py
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-10-24 19:05:43 -0500
committerMichael E Brown <michael_e_brown@dell.com>2007-10-24 19:05:43 -0500
commitc4ff1593ccb1fe53e057d6930a3fba6a8a639a3d (patch)
tree60ac2efdb967b66594c7dbb89a3a8d775df276ce /src/py-libs/backend.py
parente529d4bffb7acdb0e044f172dc2f18a33bbd31fb (diff)
parent1c055b0ca8b9c37e62c8c921c42986689244582d (diff)
downloadmock-c4ff1593ccb1fe53e057d6930a3fba6a8a639a3d.tar.gz
mock-c4ff1593ccb1fe53e057d6930a3fba6a8a639a3d.tar.xz
mock-c4ff1593ccb1fe53e057d6930a3fba6a8a639a3d.zip
Merge branch 'master' of ssh://mebrown@git.fedoraproject.org/git/hosted/mock
Diffstat (limited to 'src/py-libs/backend.py')
-rw-r--r--src/py-libs/backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py-libs/backend.py b/src/py-libs/backend.py
index 0d4f7c3..36de9c4 100644
--- a/src/py-libs/backend.py
+++ b/src/py-libs/backend.py
@@ -69,6 +69,7 @@ class Root(object):
self.more_buildreqs = config['more_buildreqs']
self.cache_topdir = config['cache_topdir']
self.cachedir = os.path.join(self.cache_topdir, self.sharedRootName)
+ self.useradd = config['useradd']
self.plugins = config['plugins']
self.pluginConf = config['plugin_conf']
@@ -458,7 +459,7 @@ class Root(object):
self.doChroot('/usr/sbin/groupdel %(group)s' % dets, raiseExc=False)
self.doChroot('/usr/sbin/groupadd -g %(gid)s %(group)s' % dets)
- self.doChroot('/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' % dets)
+ self.doChroot(self.useradd % dets)
self.doChroot("perl -p -i -e 's/^(%s:)!!/$1/;' /etc/passwd" % (self.chrootuser), raiseExc=True)
@traceLog(moduleLog)