From ceddb814472cbd0d301d6a8d8433bd3bbbb8f356 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 7 Aug 2012 22:09:39 +0000 Subject: Do not rm -rf + untar newly created chroot --- lib/Iurt/Chroot.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index e37b6d8..e3ca280 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -313,6 +313,7 @@ sub create_build_chroot { return; } sudo($config, "--tar", $chroot_tar, $tmp_chroot); + rename $tmp_chroot, $chroot; } if (!-d $chroot) { -- cgit v1.2.1