summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-23 13:01:55 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-23 13:01:55 +0000
commit673787cbdab4a47b0b3cb987866c57704d7bdee9 (patch)
tree32255ffefd59a78b5e798e18a4f790b032449c1b /perl-install/fs.pm
parent57ea24fde5f61bb54bee187847f1119b5c79f9f3 (diff)
downloaddrakx-673787cbdab4a47b0b3cb987866c57704d7bdee9.tar
drakx-673787cbdab4a47b0b3cb987866c57704d7bdee9.tar.gz
drakx-673787cbdab4a47b0b3cb987866c57704d7bdee9.tar.bz2
drakx-673787cbdab4a47b0b3cb987866c57704d7bdee9.tar.xz
drakx-673787cbdab4a47b0b3cb987866c57704d7bdee9.zip
no_comment
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 74b9f5448..860ab4ebd 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -12,6 +12,7 @@ use nfs;
use swap;
use detect_devices;
use commands;
+use modules;
1;
@@ -23,7 +24,7 @@ sub read_fstab($) {
open F, $file or return;
map {
- my ($dev, $mntpoint, @l) = split ' ';
+ my ($dev, $mntpoint, @l) = split;
$dev =~ s,/(tmp|dev)/,,;
while (@l > 4) { $mntpoint .= " " . shift @l; }
{ device => $dev, mntpoint => $mntpoint, type => $l[0], options => $l[1] }
@@ -111,7 +112,13 @@ sub mount($$$;$) {
my $flag = 0;#c::MS_MGC_VAL();
$flag |= c::MS_RDONLY() if $rdonly;
- my $mount_opt = $fs eq 'vfat' ? "check=relaxed" : "";
+ my $mount_opt = "";
+
+ if ($fs eq 'vfat') {
+ $mount_opt = "check=relaxed";
+ eval { modules::load('vfat') }; # try using vfat
+ eval { modules::load('msdos') } if $@; # otherwise msdos...
+ }
log::l("calling mount($dev, $where, $fs, $flag, $mount_opt)");
syscall_('mount', $dev, $where, $fs, $flag, $mount_opt) or die _("mount failed: ") . "$!";