diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-06-14 20:58:37 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-06-14 20:59:11 +0000 |
commit | 515ce69e72f20290ef7366487e92ec7ff99d78bb (patch) | |
tree | f451843295c1ce57d69632a4b9ef3b7255da15b0 | |
parent | d1617f868b16a297a9644b86b00889b954b450f1 (diff) | |
download | iurt-515ce69e72f20290ef7366487e92ec7ff99d78bb.tar iurt-515ce69e72f20290ef7366487e92ec7ff99d78bb.tar.gz iurt-515ce69e72f20290ef7366487e92ec7ff99d78bb.tar.bz2 iurt-515ce69e72f20290ef7366487e92ec7ff99d78bb.tar.xz iurt-515ce69e72f20290ef7366487e92ec7ff99d78bb.zip |
Unmount things when additional media fail
-rw-r--r-- | lib/Iurt/Chroot.pm | 6 |
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; } |