aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Iurt/Chroot.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 8148169..421f5d7 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -44,13 +44,13 @@ sub clean_chroot {
plog('DEBUG', "clean chroot");
if (-d $chroot && !$o_only_tar) {
- system("$sudo umount $chroot/proc &> /dev/null");
- system("$sudo umount $chroot/dev/pts &> /dev/null");
+ sudo($run, $config, "--umount", "$chroot/proc");
+ sudo($run, $config, "--umount", "$chroot/dev/pts");
if ($run->{icecream}) {
- system("$sudo umount $chroot/var/cache/icecream &> /dev/null");
+ sudo($run, $config, "--umount", "$chroot/var/cache/icecream");
}
if (-d "$chroot/urpmi_medias/") {
- system("$sudo umount $chroot/urpmi_medias");
+ sudo($run, $config, "--umount", "$chroot/urpmi_medias");
}
# Do not run rm if there is something still mounted there