diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-08-23 13:01:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-08-23 13:01:55 +0000 |
commit | 673787cbdab4a47b0b3cb987866c57704d7bdee9 (patch) | |
tree | 32255ffefd59a78b5e798e18a4f790b032449c1b /perl-install/fs.pm | |
parent | 57ea24fde5f61bb54bee187847f1119b5c79f9f3 (diff) | |
download | drakx-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.pm | 11 |
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: ") . "$!"; |