Re: [PATCH 5/5] Add a questionInitializeDisk method to the rescue interface (#582304)

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

 



On 04/14/2010 05:47 PM, Hans de Goede wrote:
> And for good measure also add a questionReinitInconsistentLVM method.
> ---
>  rescue.py |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/rescue.py b/rescue.py
> index a19985a..269b9b3 100644
> --- a/rescue.py
> +++ b/rescue.py
> @@ -110,6 +110,14 @@ class RescueInterface(InstallInterfaceBase):
>      def resetReinitInconsistentLVMQuestion(self):
>          self._inconsistentLVMAnswers = {}
> 
> +    def questionInitializeDisk(self, path, description, size, details=""):
> +        # Never initialize disks in rescue mode!
> +        return False
> +
> +    def questionReinitInconsistentLVM(self, pv_names=None, lv_name=None, vg_name=None):
> +        # Never reinit VG's in rescue mode!
> +        return False
> +
>      def shutdown (self):
>          pass
> 

That's cool and reminds me of low-level formatting of DASDs which we
also do not want here for rescue mode by any means.
I'm not familiar enough with the code paths, would DASD.startup() not be
called anyway or do we need similar suppression of dasdfmt in dasd.py or
the like?

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux