summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-05 19:54:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-05 19:54:26 +0000
commit443b7c91c9bd5716a626afcc834bec1ad10c8c71 (patch)
treede971d382f050eceba55732c51a9d8f162f72b91
parent2ec22c6be3022d75eb460963d8874ca9c19a6aa2 (diff)
downloaddrakx-443b7c91c9bd5716a626afcc834bec1ad10c8c71.tar
drakx-443b7c91c9bd5716a626afcc834bec1ad10c8c71.tar.gz
drakx-443b7c91c9bd5716a626afcc834bec1ad10c8c71.tar.bz2
drakx-443b7c91c9bd5716a626afcc834bec1ad10c8c71.tar.xz
drakx-443b7c91c9bd5716a626afcc834bec1ad10c8c71.zip
(format_ext2): better error message when it is called from format_ext3
(thanks to Brian Murrell)
-rw-r--r--perl-install/fs.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 560d1f7cf..57e1cfb26 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -545,6 +545,7 @@ sub format_ext2($@) {
$dev =~ m,(rd|ida|cciss)/, and push @options, qw(-b 4096 -R stride=16); #- For RAID only.
push @options, qw(-b 1024 -O none) if arch() =~ /alpha/;
run_program::run('mke2fs', '-F', @options, devices::make($dev)) or die _("%s formatting of %s failed", "ext2", $dev);
+ run_program::run('mke2fs', '-F', @options, devices::make($dev)) or die _("%s formatting of %s failed", grep { $_ eq '-j' } @options ? "ext3" : "ext2", $dev);
}
sub format_ext3 {
my ($dev, @options) = @_;