From 67eca73dba906de09c873a6bc328e3e6c941d0a9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 2 Nov 2010 06:39:39 +0000 Subject: use iurt_root_command to umount in clean_chroot --- lib/Iurt/Chroot.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1