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

Re: [PATCH] Do not reinitialize LVM when starting rescue with corrupted arrays (#579986)



Well Hans was faster commiting this, than we working the bugzilla.. so nevermind this submission.

----- "Martin Sivak" <msivak redhat com> wrote:

> Fixes traceback caused by nonexistent dialogs about reinitialization
> of LVM in rescue mode.
> 
> I do not want to touch possibly corrupted or misdetected arrays. So
> just ignoring them and letting the user to do his own recovery is a
> better way to handle this situation.
> ---
>  rescue.py |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/rescue.py b/rescue.py
> index 132a56c..6d4f596 100644
> --- a/rescue.py
> +++ b/rescue.py
> @@ -105,9 +105,17 @@ class RescueInterface:
>      def resetInitializeDiskQuestion(self):
>          self._initLabelAnswers = {}
>  
> +    def questionInitializeDisk(self, path, description, size,
> details=""):
> +        # do not reinitialize anything when starting rescue mode
> +        return False
> +
>      def resetReinitInconsistentLVMQuestion(self):
>          self._inconsistentLVMAnswers = {}
>  
> +    def questionReinitInconsistentLVM(self, pv_names=None,
> lv_name=None, vg_name=None):
> +        # do not reinitialize anything when starting rescue mode
> +        return False
> +
>      def shutdown (self):
>          pass
>  
> -- 
> 1.6.6.1


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