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 > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-24-2009, 02:21 PM
David Lehman
 
Default getDeviceByName does not expect the CD device to start with "/dev/" (#491768).

On Tue, 2009-03-24 at 10:43 -0400, Chris Lumens wrote:
> ---
> anaconda | 3 +++
> image.py | 2 +-
> 2 files changed, 4 insertions(+), 1 deletions(-)

Looks good.

>
> 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
>

_______________________________________________
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 05:53 AM.

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