aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Chroot.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index ba7227e..91ff0f1 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -556,7 +556,8 @@ sub build_chroot {
#
# CM: Choose a sub-500 uid to prevent collison with $luser
#
- system($sudo, 'chroot', $tmp_chroot, 'adduser', '-o', '--uid', 499, 'builder');
+ sudo($run, $config, "--useradd", $tmp_chroot, 'builder', 499);
+
# FIXME: <mrl> Be careful! Damn ugly hack right below!
sudo($run, $config, "--rm", "$tmp_chroot/var/lib/rpm/__db*");
sudo($run, $config, "--umount", "$tmp_chroot/proc");