Re: [PATCH 3/5] Tighten restrictions on the type of disklabel on x86 and EFI boot disks.

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

 



On 12/10/2009 12:35 PM, David Lehman wrote:
>> @@ -223,8 +230,10 @@ class EFI(Platform):
>>          disk = req.disk.format.partedDisk
>>  
>>          # Check that we've got a correct disk label.
>> -        if not disk.type in ["gpt", "msdos"]:
>> -            errors.append(_("%s must have a GPT or MSDOS disk label.") % req.disk.name)
>> +        labelType = self.diskLabelType(disk.device.type)
>> +        if disk.type != labelType:
>> +            errors.append(_("%s must have a %s disk label.")
>> +                          % (req.disk.name, labelType.upper())
> 
> Missing a closing paren here. Fixed locally.

Ack.

-- 
        Peter

Sanity's just a one trick pony anyway.  You only get one trick -- rational
thinking -- but when you're good and crazy, the sky's the limit!
		-- The Tick

_______________________________________________
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