aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index b0d48cc..53649ac 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -439,6 +439,7 @@ sub create_chroot {
plog("rebuild chroot tarball");
$rebuild = 1;
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
sudo($run, $config, '--rm', '-r', $chroot, $chroot_tar);
return;
@@ -461,6 +462,7 @@ sub create_chroot {
sudo($run, $config, '--rm', '-r', $tmp_chroot);
mkdir $tmp_chroot;
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
return;
}
@@ -472,6 +474,7 @@ sub create_chroot {
plog('ERR', "can't check chroot, recreating");
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
return;
}