summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-25 12:34:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-25 12:34:29 +0000
commitbc3670947e70555dffd38c1b1dd2829579090c15 (patch)
treeb74f5d61ff28222571fd7e2852d01681c6c4a537 /perl-install
parentd57406ae8c7c87553e81ca414ac39f03da9c6d51 (diff)
downloaddrakx-bc3670947e70555dffd38c1b1dd2829579090c15.tar
drakx-bc3670947e70555dffd38c1b1dd2829579090c15.tar.gz
drakx-bc3670947e70555dffd38c1b1dd2829579090c15.tar.bz2
drakx-bc3670947e70555dffd38c1b1dd2829579090c15.tar.xz
drakx-bc3670947e70555dffd38c1b1dd2829579090c15.zip
(write_fstab): enable mounting more than one swap :)
Diffstat (limited to 'perl-install')
-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 4daafd4db..41d470092 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -138,7 +138,7 @@ sub write_fstab {
(1, $_->{mntpoint} eq '/' ? 1 : loopback::carryRootLoopback($_) ? 0 : 2) :
(0, 0);
- if (($device eq 'none' || !$new{$device}) && !$new{$mntpoint}) {
+ if (($device eq 'none' || !$new{$device}) && ($mntpoint eq 'swap' || !$new{$mntpoint})) {
#- keep in mind the new line for fstab.
$new{$device} = 1;
$new{$mntpoint} = 1;