[PATCH] Fix adding partition after ActionDestroyDevice canceling

Vratislav Podzimek vpodzime at redhat.com
Mon Nov 24 19:33:23 UTC 2014


On Mon, 2014-11-24 at 19:26 +0100, Vojtech Trefny wrote:
> ---
>  blivet/devices/partition.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
> index c67e315..24f85b3 100644
> --- a/blivet/devices/partition.py
> +++ b/blivet/devices/partition.py
> @@ -496,7 +496,9 @@ class PartitionDevice(StorageDevice):
>             self.partedPartition in self.disk.format.partitions:
>              return
>  
> -        self.disk.format.addPartition(self.partedPartition)
> +        self.disk.format.addPartition(self.partedPartition.geometry.start,
> +                                      self.partedPartition.geometry.end,
> +                                      self.partedPartition.type)
>  
>          # Look up the path by start sector to deal with automatic renumbering of
>          # logical partitions on msdos disklabels.
Looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list