aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-06-14 20:58:37 +0000
committerPascal Terjan <pterjan@mageia.org>2020-06-14 21:06:24 +0000
commit737ba9fcc005cf9dbb88775373718723b35a73fc (patch)
tree64d9c2a7c1ef2b846e8759285d6a46d9a4bc08c3 /lib/Iurt
parent843de16ff29c3d3e1e7d54522e69731f6cbd6003 (diff)
downloadiurt-737ba9fcc005cf9dbb88775373718723b35a73fc.tar
iurt-737ba9fcc005cf9dbb88775373718723b35a73fc.tar.gz
iurt-737ba9fcc005cf9dbb88775373718723b35a73fc.tar.bz2
iurt-737ba9fcc005cf9dbb88775373718723b35a73fc.tar.xz
iurt-737ba9fcc005cf9dbb88775373718723b35a73fc.zip
Unmount things when additional media fail
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Chroot.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 1427aa3..85b06c4 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -96,8 +96,12 @@ sub clean_and_build_chroot {
}
if ($run->{additional_media} && $run->{additional_media}{repository}) {
- _setup_additional_media($run, $config, $chroot) or return;
+ if (!_setup_additional_media($run, $config, $chroot)) {
+ _clean_mounts($run, $config, $chroot);
+ return;
+ }
}
+
1;
}