summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-07 14:12:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-07 14:12:49 +0000
commit4ef128d3947627673f2f9fdac760cdb6f203dc53 (patch)
tree70b136add258357bd95d6466cf633c6da7e5ecee /perl-install
parent065c234bb528b03564e7d2a5effc3e3c0d5873c7 (diff)
downloaddrakx-4ef128d3947627673f2f9fdac760cdb6f203dc53.tar
drakx-4ef128d3947627673f2f9fdac760cdb6f203dc53.tar.gz
drakx-4ef128d3947627673f2f9fdac760cdb6f203dc53.tar.bz2
drakx-4ef128d3947627673f2f9fdac760cdb6f203dc53.tar.xz
drakx-4ef128d3947627673f2f9fdac760cdb6f203dc53.zip
disable_forced_fsck called for ext3 formatting
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 0e7c3f02e..4257ad62c 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -429,6 +429,11 @@ sub get_raw_hds {
################################################################################
# formatting functions
################################################################################
+sub disable_forced_fsck {
+ my ($dev) = @_;
+ run_program::run("tune2fs", "-c0", "-i0", devices::make($dev));
+}
+
sub format_ext2($@) {
#- mke2fs -b (1024|2048|4096) -c -i(1024 > 262144) -N (1 > 100000000) -m (0-100%) -L volume-label
#- tune2fs
@@ -440,6 +445,7 @@ sub format_ext2($@) {
sub format_ext3 {
my ($dev, @options) = @_;
format_ext2($dev, "-j", @options);
+ disable_forced_fsck($dev);
}
sub format_reiserfs {
my ($dev, @options) = @_;