diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-04-12 23:56:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-04-12 23:56:21 +0000 |
commit | 33876d96b93d796507af8dd46be3b9aba579d2b0 (patch) | |
tree | 2a6b030d080434295a126076b4727b891e5667e8 /perl-install/fs.pm | |
parent | 66b03c87eb3e94bd4eb764d97cd7aaf3ca7f52f9 (diff) | |
download | drakx-33876d96b93d796507af8dd46be3b9aba579d2b0.tar drakx-33876d96b93d796507af8dd46be3b9aba579d2b0.tar.gz drakx-33876d96b93d796507af8dd46be3b9aba579d2b0.tar.bz2 drakx-33876d96b93d796507af8dd46be3b9aba579d2b0.tar.xz drakx-33876d96b93d796507af8dd46be3b9aba579d2b0.zip |
no_comment
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index cf6ed3ebf..d4a564b0c 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -85,6 +85,12 @@ sub format_ext2($@) { run_program::run("mke2fs", @options, devices::make($dev)) or die _("%s formatting of %s failed", "ext2", $dev); } +sub format_reiserfs($@) { + my ($dev, @options) = @_; + + run_program::run("mkreiserfs", @options, devices::make($dev)) or die _("%s formatting of %s failed", "reiserfs", $dev); +} + sub format_dos($@) { my ($dev, @options) = @_; @@ -108,6 +114,8 @@ sub real_format_part { if (isExt2($part)) { push @options, "-F" if isLoopback($part); format_ext2($part->{device}, @options); + } elsif (isReiserfs($part)) { + format_reiserfs($part->{device}, @options); } elsif (isDos($part)) { format_dos($part->{device}, @options); } elsif (isWin($part)) { @@ -294,7 +302,7 @@ sub write($$$$) { my @to_add = ( $useSupermount ? [ split ' ', "/mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/$floppy 0 0" ] : - [ split ' ', '/dev/$floppy /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0' ], + [ split ' ', "/dev/$floppy /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0" ], [ split ' ', 'none /proc proc defaults 0 0' ], [ split ' ', 'none /dev/pts devpts mode=0620 0 0' ], (map_index { |