summaryrefslogtreecommitdiffstats
path: root/textw/partitioning_text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-05-02 17:02:41 +0000
committerMike Fulbright <msf@redhat.com>2000-05-02 17:02:41 +0000
commit375db35173348378e4b2d7b979053f27a06e82ce (patch)
tree2e0e131dae95e956191056c71732149ccc875302 /textw/partitioning_text.py
parente404f0f26a69a819b654f9b54cd0a1a8a45abed4 (diff)
downloadanaconda-375db35173348378e4b2d7b979053f27a06e82ce.tar.gz
anaconda-375db35173348378e4b2d7b979053f27a06e82ce.tar.xz
anaconda-375db35173348378e4b2d7b979053f27a06e82ce.zip
fixes to make ks --onpart work better
Diffstat (limited to 'textw/partitioning_text.py')
-rw-r--r--textw/partitioning_text.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/textw/partitioning_text.py b/textw/partitioning_text.py
index 8db8bd93e..993c543ae 100644
--- a/textw/partitioning_text.py
+++ b/textw/partitioning_text.py
@@ -7,7 +7,8 @@ from translate import _
class PartitionMethod:
def __call__(self, screen, todo):
- if todo.instClass.partitions:
+ # if instClass has new or old partition info we're in ks so skip
+ if todo.instClass.partitions or todo.instClass.fstab:
todo.skipFdisk = 1
return INSTALL_NOOP
@@ -102,7 +103,8 @@ class AutoPartitionWindow:
def __call__(self, screen, todo):
druid = None
- if todo.instClass.partitions:
+ # if instClass has new or old partition info we are in ks
+ if todo.instClass.partitions or todo.instClass.fstab:
druid = \
todo.fstab.attemptPartitioning(todo.instClass.partitions,
todo.instClass.clearParts)
@@ -122,11 +124,6 @@ class AutoPartitionWindow:
todo.fstab.formatAllFilesystems()
todo.instClass.addToSkipList("format")
- # configure kickstart requested ext2 filesystem options
- if todo.instClass.partitions:
- for (mntpoint, size, maxsize, grow, device, fsopts) in todo.instClass.partitions:
- if fsopts != None:
- todo.fstab.setfsOptions (mntpoint, fsopts)
return
(rc, choice) = ListboxChoiceWindow(screen, _("Automatic Partitioning"),