summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-01 21:24:35 +0000
committerMatt Wilson <msw@redhat.com>2000-02-01 21:24:35 +0000
commitd8be426f1622d7c95d8ede3118c87dac5baa1a0e (patch)
treebccd59cc313e24706ae356f83ff982356aeaf495 /fstab.py
parent44d29ea59647c60411688b7dda2c684852cda958 (diff)
downloadanaconda-d8be426f1622d7c95d8ede3118c87dac5baa1a0e.tar.gz
anaconda-d8be426f1622d7c95d8ede3118c87dac5baa1a0e.tar.xz
anaconda-d8be426f1622d7c95d8ede3118c87dac5baa1a0e.zip
got raid swap working
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/fstab.py b/fstab.py
index e205c214b..d41881393 100644
--- a/fstab.py
+++ b/fstab.py
@@ -196,6 +196,12 @@ class Fstab:
fstab.append((partition, 1))
+ # Add raid mounts to mount list
+ (devices, raid) = self.raidList()
+ for (mntpoint, device, fsType, raidType, start, size, makeup) in raid:
+ if fsType != "swap": continue
+ fstab.append((device, 1))
+
for n in self.extraFilesystems:
(mntpoint, device, fsType, doFormat, size) = n
if fsType != "swap": continue
@@ -215,6 +221,8 @@ class Fstab:
if self.swapOn: return
self.swapOn = 1
+ print "turning on swap", self.swapList()
+
iutil.mkdirChain('/tmp/swap')
for (device, doFormat) in self.swapList():
@@ -344,6 +352,7 @@ class Fstab:
w.pop()
# XXX remove extraneous inodes here
+ print "created raid"
if not self.setupFilesystems: return