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 > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 06-22-2012, 08:22 PM
David Lehman
 
Default Don't include newly created devices in Storage.unusedDevices.

---
pyanaconda/storage/__init__.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 5919de6..195ebef 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -525,6 +525,10 @@ class Storage(object):
for device in root.mounts.values() + root.swaps:
used_devices.extend(device.ancestors)

+ for new in [d for d in self.devicetree.leaves if not d.exists]:
+ if new in self.swaps or getattr(new.format, "mountpoint", None):
+ used_devices.extend(new.ancestors)
+
used = set(used_devices)
_all = set(self.devices)
return list(_all.difference(used))
--
1.7.7.6

_______________________________________________
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 03:20 AM.

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