diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 12:24:00 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 12:24:00 +0000 |
commit | 8025e4c151c0ec812401ded5504b80151ed7e418 (patch) | |
tree | 443c60327fd6c06051055ea51f3905211df87f46 /urpm.pm | |
parent | 71354b7d20740ae77880100ff5d785ccc2a465f4 (diff) | |
download | urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.gz urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.bz2 urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.tar.xz urpmi-8025e4c151c0ec812401ded5504b80151ed7e418.zip |
Log mounts and umounts
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}{$_}; } |