aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 7b15950..37ea892 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -316,6 +316,8 @@ sub create_build_chroot_tar {
return;
}
sudo($config, "--tar", $chroot_tar, $tmp_chroot);
+ # This rename may fail if for example tmp chroots are in another FS
+ # This does not matter as it will then be rm + untar
rename $tmp_chroot, $chroot;
}