summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/mount_options.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-03 15:34:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-03 15:34:47 +0000
commit0efeeff887e484ef8f031b5073fac6d7a1eed984 (patch)
tree493b2f0c3d601553506d1e1ec240e79c0ce8326b /perl-install/fs/mount_options.pm
parent5faf12bcb1a086ad7c27a9f431ac5022c94a2888 (diff)
downloaddrakx-0efeeff887e484ef8f031b5073fac6d7a1eed984.tar
drakx-0efeeff887e484ef8f031b5073fac6d7a1eed984.tar.gz
drakx-0efeeff887e484ef8f031b5073fac6d7a1eed984.tar.bz2
drakx-0efeeff887e484ef8f031b5073fac6d7a1eed984.tar.xz
drakx-0efeeff887e484ef8f031b5073fac6d7a1eed984.zip
remove codepage= option for fs types which don't handle it (eg: ntfs)
Diffstat (limited to 'perl-install/fs/mount_options.pm')
-rw-r--r--perl-install/fs/mount_options.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm
index 77ef74a17..91ac36ad9 100644
--- a/perl-install/fs/mount_options.pm
+++ b/perl-install/fs/mount_options.pm
@@ -154,6 +154,9 @@ sub rationalize {
if ($part->{fs_type} ne 'reiserfs') {
$options->{notail} = 0;
}
+ if (!fs::type::can_be_one_of_those_fs_types($part, 'vfat', 'smbfs', 'iso9660', 'udf')) {
+ delete $options->{'codepage='};
+ }
&pack($part, $options, $unknown);
}