diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-06-24 07:53:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-06-24 07:53:10 +0000 |
commit | 0ecbb561992d9b1fa4b11f0c264cfa615d756bff (patch) | |
tree | f88f1b79693869f4f07e6325d4ebc7603739e0fd /perl-install/fs | |
parent | 0bb08c9e4576fb9bc41b4b0ae1e51b8f21e19d32 (diff) | |
download | drakx-backup-do-not-use-0ecbb561992d9b1fa4b11f0c264cfa615d756bff.tar drakx-backup-do-not-use-0ecbb561992d9b1fa4b11f0c264cfa615d756bff.tar.gz drakx-backup-do-not-use-0ecbb561992d9b1fa4b11f0c264cfa615d756bff.tar.bz2 drakx-backup-do-not-use-0ecbb561992d9b1fa4b11f0c264cfa615d756bff.tar.xz drakx-backup-do-not-use-0ecbb561992d9b1fa4b11f0c264cfa615d756bff.zip |
normalize mke2fs and mkreiserfs into mkfs.<fs_type>
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/format.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm index 5eb0683dc..3238df33c 100644 --- a/perl-install/fs/format.pm +++ b/perl-install/fs/format.pm @@ -10,9 +10,9 @@ use fs::loopback; use log; my %cmds = ( - ext2 => [ 'e2fsprogs', 'mke2fs', '-F' ], - ext3 => [ 'e2fsprogs', 'mke2fs', '-F', '-j' ], - reiserfs => [ 'reiserfsprogs', 'mkreiserfs', '-ff' ], + ext2 => [ 'e2fsprogs', 'mkfs.ext2', '-F' ], + ext3 => [ 'e2fsprogs', 'mkfs.ext2', '-F', '-j' ], + reiserfs => [ 'reiserfsprogs', 'mkfs.reiserfs', '-ff' ], xfs => [ 'xfsprogs', 'mkfs.xfs', '-f', '-q' ], jfs => [ 'jfsprogs', 'mkfs.jfs', '-f' ], hfs => [ 'hfsutils', 'hformat' ], @@ -115,8 +115,8 @@ sub part_raw { my @args = ($cmd, @first_options, @options, devices::make($dev)); - if ($cmd eq 'mke2fs' && $wait_message) { - mke2fs($wait_message, @args) or die N("%s formatting of %s failed", $fs_type, $dev); + if ($cmd eq 'mkfs.ext2' && $wait_message) { + mkfs_ext2($wait_message, @args) or die N("%s formatting of %s failed", $fs_type, $dev); } else { run_program::raw({ timeout => 60 * 60 }, @args) or die N("%s formatting of %s failed", $fs_type, $dev); } @@ -128,7 +128,7 @@ sub part_raw { set_isFormatted($part, 1); } -sub mke2fs { +sub mkfs_ext2 { my ($wait_message, @args) = @_; open(my $F, "@args |"); |