From bd1ab3f2bf46d65e716bc64db002703fc846dd0c Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 3 Apr 2012 23:18:20 +0000 Subject: If we fail to add local user, checking if we can rebuild chroot tarball makes no sense --- lib/Iurt/Chroot.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index c2a388d..01cd514 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -156,9 +156,8 @@ sub add_local_user { if ($uid) { if (!sudo($config, "--useradd", $chroot_tmp, $luser, $uid)) { plog('ERROR', "ERROR: setting userid $uid to $luser in " . - "$chroot_tmp failed, checking the chroot"); - check_build_chroot($run->{chroot_path}, $run->{chroot_tar}, $run, - $config) or return; + "$chroot_tmp failed"); + return; } } else { # the program has been launch as root, setting the home to /home/root for compatibility -- cgit v1.2.1