From 2e51473df52bc4eb55d8e4058c9b8f833f59fec0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 19 Aug 2002 20:13:12 +0000 Subject: fix checking the return value of fsck.jfs --- perl-install/fs.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') 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); -- cgit v1.2.1