summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs/mount.pm2
-rw-r--r--perl-install/fs/mount_options.pm10
2 files changed, 5 insertions, 7 deletions
diff --git a/perl-install/fs/mount.pm b/perl-install/fs/mount.pm
index 40bc07f05..f75284e1d 100644
--- a/perl-install/fs/mount.pm
+++ b/perl-install/fs/mount.pm
@@ -58,6 +58,8 @@ sub mount {
if ($fs eq 'vfat') {
@mount_opt = 'check=relaxed';
+ } elsif ($fs eq 'ntfs') {
+ @mount_opt = () if $::isInstall; # esp. drop nls=xxx option so that we don't need kernel module nls_xxx
} elsif ($fs eq 'nfs') {
push @mount_opt, 'nolock', 'soft', 'intr' if $::isInstall;
} elsif ($fs eq 'jfs' && !$b_rdonly) {
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm
index 66d3683d7..383490bb6 100644
--- a/perl-install/fs/mount_options.pm
+++ b/perl-install/fs/mount_options.pm
@@ -221,13 +221,9 @@ sub set_default {
});
}
if ($part->{fs_type} eq 'ntfs') {
- put_in_hash($options, { ro => 1,
- 'umask=0' => $opts{security} < 3, 'umask=0022' => $opts{security} < 4,
- });
- eval { modules::load("nls_$opts{iocharset}") };
- if (!$@) {
- add2hash($options, { 'nls=' => $opts{iocharset} })
- }
+ put_in_hash($options, { ro => 1, 'nls=' => $opts{iocharset},
+ 'umask=0' => $opts{security} < 3, 'umask=0022' => $opts{security} < 4,
+ });
}
if (fs::type::can_be_this_fs_type($part, 'iso9660')) {
put_in_hash($options, { user => 1, noexec => 0, 'iocharset=' => $opts{iocharset} });