From f0b716db25c11450240db35a17c62dc930115f35 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 15 Sep 2001 23:56:41 +0000 Subject: fix options appearing twice in fstab --- perl-install/fs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/fs.pm b/perl-install/fs.pm index ecba77b87..6df2b3005 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -218,6 +218,7 @@ sub mount_options_unpack { vfat => [ qw(umask=0) ], nfs => [ qw(rsize=8192 wsize=8192) ], smbfs => [ qw(username= password=) ], + reiserfs => [ 'notail' ], ); while (my ($fs, $l) = each %per_fs) { isThisFs($fs, $part) || $part->{type} eq 'auto' && member($fs, @auto_fs) or next; @@ -268,7 +269,7 @@ sub mount_options_pack { push @l, map_each { if_($::b, $::a =~ /=$/ ? "$::a$::b" : $::a) } %$options; push @l, $unknown; - $part->{options} = join(",", grep { $_ } @l); + $part->{options} = join(",", uniq(grep { $_ } @l)); } sub mount_options_help { -- cgit v1.2.1