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

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

 



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

_______________________________________________
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