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
|