summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-06-22 23:02:44 +0000
committerMike Fulbright <msf@redhat.com>2001-06-22 23:02:44 +0000
commit99c3a368c7fbc04d5bd21285c03d240083a4e907 (patch)
tree87e20219a0c35ce145967c7f667031191d868c90 /kickstart.py
parentc19f0308fdb3387c7687da78116f5ca63f898495 (diff)
downloadanaconda-99c3a368c7fbc04d5bd21285c03d240083a4e907.tar.gz
anaconda-99c3a368c7fbc04d5bd21285c03d240083a4e907.tar.xz
anaconda-99c3a368c7fbc04d5bd21285c03d240083a4e907.zip
move code to autopart.py
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py20
1 files changed, 4 insertions, 16 deletions
diff --git a/kickstart.py b/kickstart.py
index 6b53b9c8f..275a43fdd 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -558,27 +558,15 @@ class KickstartBase(BaseInstallClass):
def doClearPart(self, id, args):
if args[0] == '--linux':
- linuxOnly = 1
+ type = CLEARPART_TYPE_LINUX
elif args[0] == '--all':
- linuxOnly = 0
+ type = CLEARPART_TYPE_ALL
else:
# XXX invalid clearpart arguments
return
- drives = id.diskset.disks.keys()
- drives.sort()
- for drive in drives:
- disk = id.diskset.disks[drive]
- part = disk.next_partition()
- while part:
- if part.fs_type and ( (linuxOnly == 0) or (part.fs_type.isLinuxNativeFS()) ):
- old = id.partrequests.getRequestByDeviceName(get_partition_name(part))
- id.partrequests.removeRequest(old)
-
- drive = part.geom.disk.dev.path[5:]
- delete = DeleteSpec(drive, part.geom.start, part.geom.end)
- id.partrequests.addDelete(delete)
- part = disk.next_partition(part)
+ # XXX need to include list of drive to restrict clear to!
+ doClearPartAction(id, type, None)
def defineRaid(self, args):
(args, extra) = isys.getopt(args, '', [ 'level=', 'device=' ] )