summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-19 22:06:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-19 22:06:23 +0000
commit2b5e2b524ca82593a7e870a49cb7d18b374154e2 (patch)
tree9d124b260736560843d3daeeb087ff8e30ef7e1b /perl-install/fs.pm
parent0eb7cd19866ac2ed418a077b3f057e84d84c7cdb (diff)
downloaddrakx-2b5e2b524ca82593a7e870a49cb7d18b374154e2.tar
drakx-2b5e2b524ca82593a7e870a49cb7d18b374154e2.tar.gz
drakx-2b5e2b524ca82593a7e870a49cb7d18b374154e2.tar.bz2
drakx-2b5e2b524ca82593a7e870a49cb7d18b374154e2.tar.xz
drakx-2b5e2b524ca82593a7e870a49cb7d18b374154e2.zip
various typos fix
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm15
1 files changed, 9 insertions, 6 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 7241681da..ef520d5a9 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -112,7 +112,7 @@ sub write_fstab {
my %new;
my @l = map {
my $device =
- $_->{device} eq 'none' || member($_->{type}, qw(nfs smb)) ?
+ $_->{device} eq 'none' || member($_->{type}, qw(nfs smbfs)) ?
$_->{device} :
isLoopback($_) ?
($_->{mntpoint} eq '/' ? "/initrd/loopfs$_->{loopback_file}" : $_->{device}) :
@@ -327,7 +327,7 @@ sub set_default_options {
}
# have noauto when we have user
- $options->{noauto} = $options->{user};
+ $options->{noauto} = 1 if $options->{user};
if ($options->{user}) {
# ensure security (user_implies - noexec as noexec is not a security matter)
@@ -348,14 +348,17 @@ sub set_removable_mntpoints {
if (detect_devices::isZipDrive($_)) {
$name = 'zip';
} elsif ($name eq 'fd') {
- $name = 'floppy';
+ # first floppy is valid, others may not be
+ $name = $names{floppy} ? '' : 'floppy';
} else {
log::l("set_removable_mntpoints: don't know what to with hd $_->{device}");
next;
}
}
- my $s = ++$names{$name};
- $_->{mntpoint} ||= "/mnt/$name" . ($s == 1 ? '' : $s);
+ if ($name) {
+ my $s = ++$names{$name};
+ $_->{mntpoint} ||= "/mnt/$name" . ($s == 1 ? '' : $s);
+ }
}
}
@@ -505,7 +508,7 @@ sub mount {
if ($fs eq 'nfs') {
log::l("calling nfs::mount($dev, $where)");
# nfs::mount($dev, $where) or die _("nfs mount failed");
- } elsif ($fs eq 'smb') {
+ } elsif ($fs eq 'smbfs') {
die "no smb yet...";
} else {
$dev = devices::make($dev) if $fs ne 'proc' && $fs ne 'usbdevfs';