summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-20 16:30:35 +0000
committerMike Fulbright <msf@redhat.com>2001-07-20 16:30:35 +0000
commit3bd2d61e8498e0d4ef02766eb0a6191b3270e424 (patch)
treee85def94c968356dc41f336137e56c28e9c9a3fb /autopart.py
parent0f6012a70a878791a8ecff51c6dbcb32e5649eac (diff)
downloadanaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.tar.gz
anaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.tar.xz
anaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.zip
also delete type 0x82, 0x83, and 0xfd partition types with no filesystem on them for CLEARPART_TYPE_LINUX
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py
index 706b664f7..e5ef6711d 100644
--- a/autopart.py
+++ b/autopart.py
@@ -751,7 +751,8 @@ def doClearPartAction(partitions, diskset):
ptype = get_partition_file_system_type(part)
else:
ptype = None
- if (linuxOnly == 0) or (ptype and (ptype.isLinuxNativeFS())):
+ if (linuxOnly == 0) or (ptype and ptype.isLinuxNativeFS()) or \
+ (not ptype and query_is_linux_native_by_numtype(part.native_type)):
old = partitions.getRequestByDeviceName(get_partition_name(part))
if old.type == REQUEST_PROTECTED:
part = disk.next_partition(part)
@@ -825,12 +826,16 @@ def doAutoPartition(dir, diskset, partitions, intf):
try:
doPartitioning(diskset, partitions, doRefresh = 0)
+ except PartitioningWarning, msg:
+ intf.messageWindow(_("Warnings During Automatic Partitioning"),
+ _("Following warnings occurred during automatic "
+ "partitioning:\n\n%s") % (msg.value))
except PartitioningError, msg:
# restore drives to original state
diskset.refreshDevices()
partitions.setFromDisk(diskset)
intf.messageWindow(_("Error Partitioning"),
- _("Could not allocated requested partitions: %s.") % (msg.value))
+ _("Could not allocated requested partitions: \n\n%s.") % (msg.value))
def queryAutoPartitionOK(intf, diskset, partitions):