FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 03-11-2009, 12:06 AM
David Lehman
 
Default Schedule destruction of any existing formatting along with the device.

Schedule destruction of any existing formats the caller neglected to
destroy before calling Storage.destroyDevice to avoid things like
mdadm hanging the install trying to ask if we're sure we want to make
an array on what looks like an ext3 filesystem.
---
storage/__init__.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 63fa622..1e1aa7f 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -568,6 +568,10 @@ class Storage(object):

def destroyDevice(self, device):
""" Schedule destruction of a device. """
+ if device.format.exists:
+ # schedule destruction of any formatting while we're at it
+ self.devicetree.registerAction(ActionDestroyFormat (device))
+
action = ActionDestroyDevice(device)
self.devicetree.registerAction(action)

--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-11-2009, 12:12 AM
David Cantrell
 
Default Schedule destruction of any existing formatting along with the device.

Looks good.

On 03/10/2009 03:06 PM, David Lehman wrote:

Schedule destruction of any existing formats the caller neglected to
destroy before calling Storage.destroyDevice to avoid things like
mdadm hanging the install trying to ask if we're sure we want to make
an array on what looks like an ext3 filesystem.
---
storage/__init__.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 63fa622..1e1aa7f 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -568,6 +568,10 @@ class Storage(object):

def destroyDevice(self, device):
""" Schedule destruction of a device. """
+ if device.format.exists:
+ # schedule destruction of any formatting while we're at it
+ self.devicetree.registerAction(ActionDestroyFormat (device))
+
action = ActionDestroyDevice(device)
self.devicetree.registerAction(action)




--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

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

Thread Tools




All times are GMT. The time now is 12:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org