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 03-24-2009, 01:43 PM
Chris Lumens
 
Default getDeviceByName does not expect the CD device to start with "/dev/" (#491768).

---
anaconda | 3 +++
image.py | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index 28893e2..7779703 100755
--- a/anaconda
+++ b/anaconda
@@ -571,6 +571,9 @@ class Anaconda:
if not tree.startswith("/"):
tree = "/%s" %(tree,)

+ if device.startswith("/dev/"):
+ device = device[5:]
+
self.mediaDevice = device
self.methodstr = "cdrom://%s" % tree
else:
diff --git a/image.py b/image.py
index dea1e40..c77d923 100644
--- a/image.py
+++ b/image.py
@@ -264,7 +264,7 @@ def scanForMedia(tree, storage):
isys.umount(tree)
continue

- return dev.path
+ return dev.name

return None

--
1.6.1.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 01:41 PM.

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