summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
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 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;