summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-05-02 21:05:28 +0000
committerMike Fulbright <msf@redhat.com>2000-05-02 21:05:28 +0000
commit1cc96d0393256eafd6d90069ac82ded8126720fa (patch)
tree13702dab7fdfd142384f0f138d1a0dea86f64d6b /fstab.py
parent9809364d6d00b68bc826ae23f6f90cb99315fad3 (diff)
downloadanaconda-1cc96d0393256eafd6d90069ac82ded8126720fa.tar.gz
anaconda-1cc96d0393256eafd6d90069ac82ded8126720fa.tar.xz
anaconda-1cc96d0393256eafd6d90069ac82ded8126720fa.zip
more fixes for --onpart
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py19
1 files changed, 15 insertions, 4 deletions
diff --git a/fstab.py b/fstab.py
index f068a3696..829bc9c18 100644
--- a/fstab.py
+++ b/fstab.py
@@ -43,13 +43,18 @@ def isValidExt2(device):
return 0
class Fstab:
- def attemptPartitioning(self, partitions, clearParts):
+ def attemptPartitioning(self, partitions, prefstab, clearParts):
attempt = []
swapCount = 0
+# fstab = []
+# for (mntpoint, dev, fstype, reformat, size) in self.extraFilesystems:
+# fstab.append ((dev, mntpoint))
+
fstab = []
- for (mntpoint, dev, fstype, reformat, size) in self.extraFilesystems:
- fstab.append ((dev, mntpoint))
+ if prefstab != None:
+ for (mntpoint, (dev, fstype, reformat)) in prefstab:
+ fstab.append ((dev, mntpoint))
ddruid = self.createDruid(fstab = fstab, ignoreBadDrives = 1)
@@ -80,7 +85,7 @@ class Fstab:
# configure kickstart requested ext2 filesystem options
for (mntpoint, size, maxsize, grow, device, fsopts) in partitions:
if fsopts != None:
- self.fstab.setfsOptions (mntpoint, fsopts)
+ self.setfsOptions (mntpoint, fsopts)
return ddruid
else:
@@ -704,6 +709,12 @@ class Fstab:
self.waitWindow = waitWindow
self.messageWindow = messageWindow
self.badBlockCheck = 0
+
+ #
+ # extraFilesystems used for upgrades when /etc/fstab is read as
+ # well as for adding fstab entries for removable media
+ # Should NOT be used by kickstart any more
+ #
self.extraFilesystems = []
self.existingRaid = []
self.ddruid = self.createDruid()