summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-06-10 20:02:37 +0000
committerJeremy Katz <katzj@redhat.com>2006-06-10 20:02:37 +0000
commit43567ab91550fe33b2c8a7b0e6bd4ea595f79fbf (patch)
tree866b87818218951d124662255b183c116161532f
parent02af8d082e2ea94c61778e4a14b61531f8cd03c9 (diff)
downloadanaconda-43567ab91550fe33b2c8a7b0e6bd4ea595f79fbf.tar.gz
anaconda-43567ab91550fe33b2c8a7b0e6bd4ea595f79fbf.tar.xz
anaconda-43567ab91550fe33b2c8a7b0e6bd4ea595f79fbf.zip
2006-06-10 Jeremy Katz <katzj@redhat.com>
* autopart.py (doClearPartAction): Clear partition on mactels if it doesn't have a filesystem so that we can do auto-partitioning on them.
-rw-r--r--ChangeLog4
-rw-r--r--autopart.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index af39b1ada..a446062b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-06-10 Jeremy Katz <katzj@redhat.com>
+ * autopart.py (doClearPartAction): Clear partition on mactels if
+ it doesn't have a filesystem so that we can do auto-partitioning
+ on them.
+
* anaconda.spec (Requires): ifarch the syslinux requires
2006-06-09 Jeremy Katz <katzj@redhat.com>
diff --git a/autopart.py b/autopart.py
index 2407b050f..ef706fd2b 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1107,7 +1107,8 @@ def doClearPartAction(anaconda, partitions, diskset):
partedUtils.isLinuxNativeByNumtype(part.native_type)) or
((part.native_type == -1) and # the ptable doesn't have types
((part.is_flag_available(parted.PARTITION_RAID) and part.get_flag(parted.PARTITION_RAID)) or # this is a RAID
- (part.is_flag_available(parted.PARTITION_LVM) and part.get_flag(parted.PARTITION_LVM))))): # or an LVM
+ (part.is_flag_available(parted.PARTITION_LVM) and part.get_flag(parted.PARTITION_LVM)) or # or an LVM
+ (iutil.isMactel() and not ptype)))): # or we're on a mactel and have a blank partition from bootcamp #FIXME: this could be dangerous...
old = partitions.getRequestByDeviceName(partedUtils.get_partition_name(part))
if old.getProtected():
part = disk.next_partition(part)