summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-08 13:59:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-08 13:59:21 +0000
commit493234a8fd7bcf0a41f8df22fd8d8c774fbb064e (patch)
tree2705a7163d181db1e7e4693ce87e477cee5702ea /perl-install/fs.pm
parent5153904e210f766290edcf5832c25310a649f9d4 (diff)
downloaddrakx-493234a8fd7bcf0a41f8df22fd8d8c774fbb064e.tar
drakx-493234a8fd7bcf0a41f8df22fd8d8c774fbb064e.tar.gz
drakx-493234a8fd7bcf0a41f8df22fd8d8c774fbb064e.tar.bz2
drakx-493234a8fd7bcf0a41f8df22fd8d8c774fbb064e.tar.xz
drakx-493234a8fd7bcf0a41f8df22fd8d8c774fbb064e.zip
(write_fstab): special case for device ``none'' (which can be mounted
twice or more :)
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index de3f62867..8b91b29b3 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -409,7 +409,7 @@ sub write_fstab($;$$) {
my %new;
@to_add = grep {
- if (!$new{$_->[0]} && !$new{$_->[1]}) {
+ if ($_->[0] eq 'none' || !$new{$_->[0]} && !$new{$_->[1]}) {
#- keep in mind the new line for fstab.
@new{$_->[0], $_->[1]} = (1, 1);
1;