summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-12 13:33:36 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-12 13:33:36 +0000
commita87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f (patch)
tree811d903b07ed403f3f053f2e192e186b58da276d /perl-install
parente8091c93c6214db0b1596461693848aa29e906e0 (diff)
downloaddrakx-a87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f.tar
drakx-a87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f.tar.gz
drakx-a87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f.tar.bz2
drakx-a87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f.tar.xz
drakx-a87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f.zip
fixed wrong examination of fsck return code (exit code 1 says fsck succeeded in
fixing partition and now is ok).
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 3e9603c28..79929f699 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -227,7 +227,9 @@ sub mount($$$;$) {
} elsif ($fs eq 'romfs') {
eval { modules::load('romfs') };
} elsif ($fs eq 'ext2') {
- run_program::run("fsck.ext2", "-a", $dev) or die _("fsck failed: ") . "$!";
+ run_program::run("fsck.ext2", "-a", $dev);
+ $? & 0x0100 and log::l("fsck corrected partition $dev");
+ $? & 0xfeff and die _("fsck failed with exit code %d or signal %d", $? >> 8, $? & 255);
}
$where =~ s|/$||;