[blivet][master/rhel7-branch Use container's parent's name for PV if available (#1065737)

David Lehman dlehman at redhat.com
Fri Mar 7 15:06:32 UTC 2014


On Fri, 2014-03-07 at 11:03 +0100, Vratislav Podzimek wrote:
> When modifying the PV in the LVMFactory, we want to keep its name.

ACK.

> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  blivet/devicefactory.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
> index 5e0b7f1..e8af129 100644
> --- a/blivet/devicefactory.py
> +++ b/blivet/devicefactory.py
> @@ -1206,6 +1206,7 @@ class LVMFactory(DeviceFactory):
>              kwargs["raid_level"] = self.container_raid_level
>              if self.container and self.container.parents:
>                  kwargs["device"] = self.container.parents[0]
> +                kwargs["name"] = self.container.parents[0].name
>              else:
>                  kwargs["name"] = self.storage.suggestDeviceName(prefix="pv")
>  




More information about the anaconda-patches mailing list