summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/mount.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/mount.pm b/perl-install/fs/mount.pm
index baf1ce837..5687ac4d3 100644
--- a/perl-install/fs/mount.pm
+++ b/perl-install/fs/mount.pm
@@ -115,7 +115,8 @@ sub umount {
run_program::run('umount', $mntpoint) or do {
kill 15, fuzzy_pidofs('^fam\b');
- run_program::run('umount', $mntpoint) or die N("error unmounting %s: %s", $mntpoint, $!);
+ my $err;
+ run_program::run('umount', '2>', \$err, $mntpoint) or die N("error unmounting %s: %s", $mntpoint, $err);
};
substInFile { $_ = '' if /(^|\s)$mntpoint\s/ } '/etc/mtab'; #- do not care about error, if we can not read, we will not manage to write... (and mess mtab)