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 User

 
 
LinkBack Thread Tools
 
Old 12-02-2010, 05:34 PM
David Lehman
 
Default Set dm-uuid for anaconda disk image devices from devicetree.

---
pyanaconda/storage/devices.py | 2 --
pyanaconda/storage/devicetree.py | 1 +
2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 959cc62..ad07842 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1656,8 +1656,6 @@ class DMLinearDevice(DMDevice):
if not parents:
raise ValueError("DMLinearDevice requires a backing block device")

- dmUuid = "ANACONDA-%s" % name
-
DMDevice.__init__(self, name, format=format, size=size,
parents=parents, sysfsPath=sysfsPath,
exists=exists, target="linear", dmUuid=dmUuid)
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 5fbd8a4..1fcfc80 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1581,6 +1581,7 @@ class DeviceTree(object):
loopdev.setup()
log.debug("%s" % loopdev)
dmdev = DMLinearDevice(name,
+ dmUuid="ANACONDA-%s" % name,
parents=[loopdev],
exists=True)
dmdev.setup()
--
1.7.2.3

_______________________________________________
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 10:25 AM.

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