diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 23:18:20 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 23:18:20 +0000 |
commit | bd1ab3f2bf46d65e716bc64db002703fc846dd0c (patch) | |
tree | cf0f6901d10d0c76b974ea2667bc9b100be56f9f /lib | |
parent | 0bc3c7920fb35e22870142ceffdce65458f3b133 (diff) | |
download | iurt-bd1ab3f2bf46d65e716bc64db002703fc846dd0c.tar iurt-bd1ab3f2bf46d65e716bc64db002703fc846dd0c.tar.gz iurt-bd1ab3f2bf46d65e716bc64db002703fc846dd0c.tar.bz2 iurt-bd1ab3f2bf46d65e716bc64db002703fc846dd0c.tar.xz iurt-bd1ab3f2bf46d65e716bc64db002703fc846dd0c.zip |
If we fail to add local user, checking if we can rebuild chroot tarball makes no sense
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Chroot.pm | 5 |
1 files 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 |