Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Marketing (http://www.linux-archive.org/fedora-marketing/)
-   -   Do not reinitialize LVM when starting rescue with corrupted arrays (#579986) (http://www.linux-archive.org/fedora-marketing/357282-do-not-reinitialize-lvm-when-starting-rescue-corrupted-arrays-579986-a.html)

Martin Sivak 04-15-2010 10:46 AM

Do not reinitialize LVM when starting rescue with corrupted arrays (#579986)
 
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 01:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.