summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-12-16 17:36:59 +0000
committerErik Troan <ewt@redhat.com>1999-12-16 17:36:59 +0000
commitef9a674a458ac771272ab7b91c36ddfececd3098 (patch)
tree5b3de4fe48c764073b09289708fcd7cd1a91c092 /textw
parent3c4a1f706279c4f7b3dfbd10486a87fb7072fd8d (diff)
downloadanaconda-ef9a674a458ac771272ab7b91c36ddfececd3098.tar.gz
anaconda-ef9a674a458ac771272ab7b91c36ddfececd3098.tar.xz
anaconda-ef9a674a458ac771272ab7b91c36ddfececd3098.zip
fdisk partitioning works with new fstab stuff
Diffstat (limited to 'textw')
-rw-r--r--textw/partitioning.py23
1 files changed, 8 insertions, 15 deletions
diff --git a/textw/partitioning.py b/textw/partitioning.py
index 38700800f..b31c1d8c3 100644
--- a/textw/partitioning.py
+++ b/textw/partitioning.py
@@ -37,9 +37,8 @@ class ManualPartitionWindow:
if todo.skipFdisk: return INSTALL_NOOP
- drives = todo.drives.available ()
- driveNames = drives.keys()
- driveNames.sort (isys.compareDrives)
+ driveNames = todo.fstab.driveList()
+ drives = todo.fstab.drivesByName()
choices = []
haveEdited = 0
@@ -65,8 +64,11 @@ class ManualPartitionWindow:
if button != "done" and button != "back":
haveEdited = 1
- todo.ddruidReadOnly = 1
- todo.ddruid = None # free our fd's to the hard drive
+ # free our fd's to the hard drive -- we have to
+ # fstab.rescanDrives() after this or bad things happen!
+ if not haveEdited:
+ todo.fstab.closeDrives()
+ todo.fstab.setReadonly(1)
device = driveNames[choice]
screen.suspend ()
if os.access("/sbin/fdisk", os.X_OK):
@@ -87,16 +89,7 @@ class ManualPartitionWindow:
pass
screen.resume ()
- if haveEdited:
- drives = todo.drives.available ().keys ()
- drives.sort (isys.compareDrives)
-
- fstab = []
- for mntpoint, (dev, fstype, reformat) in todo.mounts.items ():
- fstab.append ((dev, mntpoint))
-
- todo.ddruid = fsedit(0, drives, fstab, todo.zeroMbr,
- todo.ddruidReadOnly)
+ todo.fstab.rescanPartitions()
if button == "back":
return INSTALL_BACK