summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fstab.py b/fstab.py
index 4ec2667a9..0e2535dd0 100644
--- a/fstab.py
+++ b/fstab.py
@@ -466,6 +466,12 @@ class Fstab:
# for swap, the mntpoint doubles as the size
fstab.append((device, relative, mntpoint))
+ # we need to find existing raid swap as well
+ existing = self.existingRaidList()
+ for (raidDevice, mntPoint, fileSystem, deviceList) in existing:
+ if fileSystem == "swap":
+ fstab.append(raidDevice, 1, None)
+
return fstab
def turnOffSwap(self, devices = 1, files = 0):