[PATCH blivet rhel7-branch] When handling implicit partitions, first check autopart was requested.

Brian C. Lane bcl at redhat.com
Wed Sep 9 00:18:37 UTC 2015


On Tue, Sep 08, 2015 at 12:54:28PM -0400, Chris Lumens wrote:
> Just assuming we're doing autopart by checking the autoPartType breaks
> the reqpart command.  I wouldn't be surprised if it breaks something
> else too.
> 
> Related: rhbz#1164660
> ---
>  blivet/partitioning.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/blivet/partitioning.py b/blivet/partitioning.py
> index 76a53b4..57937cd 100644
> --- a/blivet/partitioning.py
> +++ b/blivet/partitioning.py
> @@ -243,7 +243,8 @@ def _schedulePartitions(storage, disks, implicit_devices, min_luks_entropy=0, re
>                                    parents=dev)
>              storage.createDevice(luks_dev)
>  
> -        if storage.autoPartType in (AUTOPART_TYPE_LVM, AUTOPART_TYPE_LVM_THINP,
> +        if storage.doAutoPart and \
> +           storage.autoPartType in (AUTOPART_TYPE_LVM, AUTOPART_TYPE_LVM_THINP,
>                                      AUTOPART_TYPE_BTRFS):
>              # doing LVM/BTRFS -- make sure the newly created partition fits in some
>              # free space together with one of the implicitly requested partitions
> -- 
> 2.4.3

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list