Re: [PATCH][f15, master] Don't clear partition 1 from mac disks even if it has no name. (#674105)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/15/2011 03:25 PM, David Lehman wrote:
> ---
>   pyanaconda/storage/partitioning.py |    3 +--
>   1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
> index 65902ff..e8f3921 100644
> --- a/pyanaconda/storage/partitioning.py
> +++ b/pyanaconda/storage/partitioning.py
> @@ -293,8 +293,7 @@ def shouldClear(device, clearPartType, clearPartDisks=None):
>           # Never clear the special first partition on a Mac disk label, as that
>           # holds the partition table itself.
>           if device.disk.format.partedDisk.type == "mac" and \
> -           device.partedPartition.number == 1 and \
> -           device.partedPartition.name == "Apple":
> +           device.partedPartition.number == 1:
>               return False
> 
>           # If we got a list of disks to clear, make sure this one's on it

ACK, this should be at the very least safe to do, and I think it's
probably even correct.

-- 
        Peter

Space, is big. Really big. You just won't believe how vastly hugely
mindbogglingly big it is. I mean you may think it's a long way down the
road to the chemist, but that's just peanuts to space.
		-- The Hitchhiker's Guide to the Galaxy

01234567890123456789012345678901234567890123456789012345678901234567890123456789

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux