summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 12:24:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 12:24:00 +0000
commit8025e4c151c0ec812401ded5504b80151ed7e418 (patch)
tree443c60327fd6c06051055ea51f3905211df87f46
parent71354b7d20740ae77880100ff5d785ccc2a465f4 (diff)
downloadurpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar
urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.gz
urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.bz2
urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.xz
urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.zip
Log mounts and umounts
-rw-r--r--urpm.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 79044d2c..583f4f22 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2045,8 +2045,10 @@ sub try_mounting {
if ($is_iso) {
#- to mount an iso image, grab the first loop device
my $loopdev = urpm::sys::first_free_loopdev();
+ sys_log("mount iso $_ on $removable");
$loopdev and system("mount '$removable' '$_' -t iso9660 -o loop=$loopdev");
} else {
+ sys_log("mount $_");
system("mount '$_' 2>/dev/null");
}
$removable && $infos{$_}{fs} ne 'supermount' and $urpm->{removable_mounted}{$_} = undef;
@@ -2064,6 +2066,7 @@ sub try_umounting {
} urpm::sys::find_mntpoints($dir, \%infos))
{
$urpm->{log}(N("unmounting %s", $_));
+ sys_log("umount $_");
system("umount '$_' 2>/dev/null");
delete $urpm->{removable_mounted}{$_};
}