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

Re: [rhel6-branch] Only allow one EFI System Partition to exist at a time.



On Fri, 2011-01-14 at 16:15 -0500, Peter Jones wrote:
...
> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index f45e656..250aa43 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1831,7 +1831,7 @@ class DeviceTree(object):
>                  kwargs["peStart"] = udev_device_get_pv_pe_start(info)
>              except KeyError:
>                  log.debug("PV %s has no pe_start" % name)
> -        elif format_type == "vfat":
> +        elif format_type == "vfat" or format_type == "efi":
>              # efi magic
>              if isinstance(device, PartitionDevice) and device.bootable:
>                  efi = formats.getFormat("efi")

The above hunk is probably not needed since blkid shouldn't return "efi"
AFAIK. The rest looks good.

Dave


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