summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>1999-12-14 19:01:20 +0000
committerFrancois Pons <fpons@mandriva.com>1999-12-14 19:01:20 +0000
commit927f51ad73f141395cc9d644de0a3b1827513eaf (patch)
treedaf2d3422640b53f1c68f0c383080394ae9264bf /perl-install/fs.pm
parent5bdd01f0daf81cf97a5d04004adb55a75c58ef6c (diff)
downloaddrakx-backup-do-not-use-927f51ad73f141395cc9d644de0a3b1827513eaf.tar
drakx-backup-do-not-use-927f51ad73f141395cc9d644de0a3b1827513eaf.tar.gz
drakx-backup-do-not-use-927f51ad73f141395cc9d644de0a3b1827513eaf.tar.bz2
drakx-backup-do-not-use-927f51ad73f141395cc9d644de0a3b1827513eaf.tar.xz
drakx-backup-do-not-use-927f51ad73f141395cc9d644de0a3b1827513eaf.zip
*** empty log message ***
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index a7180aad9..46f569589 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -238,7 +238,7 @@ sub write_fstab($;$$) {
isNfs($_) and $dir = '', $options ||= 'ro,rsize=8192,wsize=8192';
#- keep in mind the new line for fstab.
- @new{($_->{mntpoint}, $_->{"$dir$_->{device}"})} = undef;
+ @new{($_->{mntpoint}, "$dir$_->{device}")} = undef;
#- tested? devices::make("$prefix/$dir$_->{device}") if $_->{device} && $dir && !$_->{noMakeDevice};
eval { devices::make("$prefix/$dir$_->{device}") } if $_->{device} && $dir;
@@ -247,21 +247,23 @@ sub write_fstab($;$$) {
[ ( $_->{device} =~ /^\// ? $_->{device} : "$dir$_->{device}" ),
$_->{mntpoint}, type2fs($_->{type}), $options, $freq, $passno ];
- } grep { $_->{mntpoint} && type2fs($_->{type}) &&
+ } grep { $_->{mntpoint} && type2fs($_->{type}) && !isFat($_) &&
! exists $new{$_->{mntpoint}} && ! exists $new{"/dev/$_->{device}"} } @$fstab;
#- inserts dos/win partitions in fstab.
#- backward compatible win kdeicons script to handle upgrade correctly?
+ #- take into account an already provided mount point.
unshift @to_add,
map_index {
my $i = $::i ? $::i + 1 : '';
my $device = $_->{device} =~ /^\/dev\/(.*)$/ ? $1 : $_->{device};
+ my $mntpoint = $_->{mntpoint} ? $_->{mntpoint} : "/mnt/DOS_$device";
#- keep in mind the new line for fstab.
- @new{("/mnt/DOS_$device", "/dev/$device")} = undef;
+ @new{($mntpoint, "/dev/$device")} = undef;
- mkdir "$prefix/mnt/DOS_$device", 0755 or log::l("failed to mkdir $prefix/mnt/DOS_$device: $!");
- [ "/dev/$device", "/mnt/DOS_$device", "vfat", "user,exec,conv=auto", 0, 0 ];
+ mkdir "$prefix/$mntpoint", 0755 or log::l("failed to mkdir $prefix/$mntpoint: $!");
+ [ "/dev/$device", $mntpoint, "vfat", "user,exec,conv=auto", 0, 0 ];
} grep { isFat($_) &&
! exists $new{"/dev/$_->{device}"} } @$fstab;