summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
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);