summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-14 18:41:13 +0000
committerMatt Wilson <msw@redhat.com>2000-02-14 18:41:13 +0000
commit20c70a3665997a1ee8068a18ca85196108ab29d7 (patch)
treec06cecdfc6d068cff9332f32d350fcf11e93977c /fstab.py
parent416efc1ebc966ec2ead235c5c0679bb7b03eb598 (diff)
downloadanaconda-20c70a3665997a1ee8068a18ca85196108ab29d7.tar.gz
anaconda-20c70a3665997a1ee8068a18ca85196108ab29d7.tar.xz
anaconda-20c70a3665997a1ee8068a18ca85196108ab29d7.zip
uncommitted changes in tree (msw)
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 1293e6f42..8630d404e 100644
--- a/fstab.py
+++ b/fstab.py
@@ -254,6 +254,9 @@ class Fstab:
self.supplementalRaid.append((mountPoint, raidDevice, fileSystem,
raidLevel, deviceList))
+ def clearExistingRaid(self):
+ self.existingRaid = []
+
def addExistingRaidDevice(self, raidDevice, mntPoint, fsystem, deviceList):
self.existingRaid.append(raidDevice, mntPoint, fsystem, deviceList)
@@ -506,6 +509,9 @@ class Fstab:
self.createRaidTab(prefix + "/etc/raidtab", "/dev")
+ def clearMounts(self):
+ self.extraFilesystems = []
+
def addMount(self, partition, mount, fsystem, doFormat = 0, size = 0):
self.extraFilesystems.append(mount, partition, fsystem, doFormat,
size)
@@ -666,6 +672,9 @@ def readFstab (path, fstab):
lines = f.readlines ()
f.close
+ fstab.clearExistingRaid()
+ fstab.clearMounts()
+
drives = fstab.driveList()
raidList = raid.scanForRaid(drives)
raidByDev = {}