diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-23 22:58:04 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-23 22:58:04 +0000 |
commit | 0cce751c8b111900245303defbafda2407364fd1 (patch) | |
tree | 6ae25f547473f84e28fe5f09125355b820858582 /fstab.py | |
parent | 0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac (diff) | |
download | anaconda-0cce751c8b111900245303defbafda2407364fd1.tar.gz anaconda-0cce751c8b111900245303defbafda2407364fd1.tar.xz anaconda-0cce751c8b111900245303defbafda2407364fd1.zip |
make sure on upgrades to get swap on RAID as well
Diffstat (limited to 'fstab.py')
-rw-r--r-- | fstab.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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): |