summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/mount_options.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-02 14:34:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-02 14:34:16 +0000
commit29b91486ff7de14e6f4388ee03bf426a912f76d9 (patch)
tree974112bd10718488c55b5cd93a22a5b5c66475db /perl-install/fs/mount_options.pm
parent076d81eaaea229d7e0885113e008eb04fdf8591f (diff)
downloaddrakx-29b91486ff7de14e6f4388ee03bf426a912f76d9.tar
drakx-29b91486ff7de14e6f4388ee03bf426a912f76d9.tar.gz
drakx-29b91486ff7de14e6f4388ee03bf426a912f76d9.tar.bz2
drakx-29b91486ff7de14e6f4388ee03bf426a912f76d9.tar.xz
drakx-29b91486ff7de14e6f4388ee03bf426a912f76d9.zip
drop supermount support (it has been dropped from our kernel)
Diffstat (limited to 'perl-install/fs/mount_options.pm')
-rw-r--r--perl-install/fs/mount_options.pm17
1 files changed, 6 insertions, 11 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm
index 596c3378d..ce06ef9e2 100644
--- a/perl-install/fs/mount_options.pm
+++ b/perl-install/fs/mount_options.pm
@@ -43,8 +43,6 @@ sub unpack {
$non_defaults->{encrypted} = 1;
- $non_defaults->{supermount} = 1 if $part->{fs_type} =~ /:/ || member($part->{fs_type}, 'auto', @auto_fs);
-
my $defaults = { reverse %$non_defaults };
my %options = map { $_ => '' } keys %$non_defaults;
my @unknown;
@@ -134,8 +132,6 @@ have suidperl(1) installed.)"),
'sync' => N("All I/O to the file system should be done synchronously."),
- 'supermount' => '',
-
'users' => N("Allow every user to mount and umount the file system."),
'user' => N("Allow an ordinary user to mount the file system."),
@@ -163,7 +159,7 @@ sub rationalize {
delete $options->{'codepage='};
}
if (member($part->{mntpoint}, fs::type::directories_needed_to_boot())) {
- foreach (qw(users user noauto supermount)) {
+ foreach (qw(users user noauto)) {
if ($options->{$_}) {
$options->{$_} = 0;
$options->{$_} = 0 foreach qw(nodev noexec nosuid);
@@ -176,16 +172,15 @@ sub rationalize {
sub set_default {
my ($part, %opts) = @_;
- #- opts are: useSupermount security iocharset codepage ignore_is_removable
+ #- opts are: security iocharset codepage ignore_is_removable
my ($options, $unknown) = &unpack($part);
if (!$opts{ignore_is_removable} && $part->{is_removable}
&& !member($part->{mntpoint}, fs::type::directories_needed_to_boot())
&& (!$part->{fs_type} || $part->{fs_type} eq 'auto' || $part->{fs_type} =~ /:/)) {
- $options->{supermount} = $opts{useSupermount} && !($opts{useSupermount} eq 'magicdev' && $part->{media_type} eq 'cdrom');
- $part->{fs_type} = !$options->{supermount} ? 'auto' :
- $part->{media_type} eq 'cdrom' ? 'udf:iso9660' : 'ext2:vfat';
+ $options->{supermount} = 0; #- always disable supermount
+ $part->{fs_type} = 'auto';
$options->{sync} = 1 if $part->{media_type} ne 'cdrom';
}
@@ -240,7 +235,7 @@ sub set_default {
}
# rationalize: no need for user
- if ($options->{autofs} || $options->{supermount}) {
+ if ($options->{autofs}) {
$options->{users} = $options->{user} = 0;
}
@@ -258,7 +253,7 @@ sub set_default {
sub set_all_default {
my ($all_hds, %opts) = @_;
- #- opts are: useSupermount security iocharset codepage
+ #- opts are: security iocharset codepage
foreach my $part (fs::get::really_all_fstab($all_hds)) {
set_default($part, %opts);