summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-19 20:13:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-19 20:13:12 +0000
commit2e51473df52bc4eb55d8e4058c9b8f833f59fec0 (patch)
tree311834e39eab73ad6755a1f8a5ce961b1cb2381b /perl-install/fs.pm
parent6ca36d9e0b7068ea68c56e4a44a5eb159c6928a3 (diff)
downloaddrakx-2e51473df52bc4eb55d8e4058c9b8f833f59fec0.tar
drakx-2e51473df52bc4eb55d8e4058c9b8f833f59fec0.tar.gz
drakx-2e51473df52bc4eb55d8e4058c9b8f833f59fec0.tar.bz2
drakx-2e51473df52bc4eb55d8e4058c9b8f833f59fec0.tar.xz
drakx-2e51473df52bc4eb55d8e4058c9b8f833f59fec0.zip
fix checking the return value of fsck.jfs
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 01f8f3ac4..9a2a5a950 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -703,7 +703,10 @@ sub mount {
$mount_opt = 'notail'; #- notail in any case
} elsif ($fs eq 'jfs' && !$rdonly) {
#- needed if the system is dirty otherwise mounting read-write simply fails
- run_program::run("fsck.jfs", $dev) or die "fsck.jfs failed";
+ run_program::run("fsck.jfs", $dev) or do {
+ my $err = $?;
+ die "fsck.jfs failed" if $err & 0xfc00;
+ };
} elsif ($fs eq 'ext2' || $fs eq 'ext3' && $::isInstall) {
foreach ('-a', '-y') {
run_program::run("fsck.ext2", $_, $dev);