summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-23 22:58:04 +0000
committerMike Fulbright <msf@redhat.com>2001-03-23 22:58:04 +0000
commit0cce751c8b111900245303defbafda2407364fd1 (patch)
tree6ae25f547473f84e28fe5f09125355b820858582
parent0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac (diff)
downloadanaconda-0cce751c8b111900245303defbafda2407364fd1.tar.gz
anaconda-0cce751c8b111900245303defbafda2407364fd1.tar.xz
anaconda-0cce751c8b111900245303defbafda2407364fd1.zip
make sure on upgrades to get swap on RAID as well
-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):