diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-19 20:13:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-19 20:13:12 +0000 |
commit | 2e51473df52bc4eb55d8e4058c9b8f833f59fec0 (patch) | |
tree | 311834e39eab73ad6755a1f8a5ce961b1cb2381b /perl-install | |
parent | 6ca36d9e0b7068ea68c56e4a44a5eb159c6928a3 (diff) | |
download | drakx-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')
-rw-r--r-- | perl-install/fs.pm | 5 |
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); |