[rhel7-branch/master][PATCH] Search all disk types for install media (#1004726)
Brian C. Lane
bcl at redhat.com
Tue Sep 17 23:39:23 UTC 2013
On Tue, Sep 17, 2013 at 05:18:35PM -0400, David Shea wrote:
> This way we allow USB-based install media as an installation source.
> ---
> pyanaconda/image.py | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/image.py b/pyanaconda/image.py
> index b3604ff..2c58488 100644
> --- a/pyanaconda/image.py
> +++ b/pyanaconda/image.py
> @@ -189,7 +189,11 @@ def mountImage(isodir, tree):
> def opticalInstallMedia(devicetree, mountpoint=INSTALL_TREE):
> retval = None
>
> - for dev in devicetree.getDevicesByType("cdrom"):
> + # Search for devices identified as cdrom along with any other
> + # device that has an iso9660 filesystem. This will catch USB media
> + # created from ISO images.
> + for dev in set(devicetree.getDevicesByType("cdrom") + \
> + [d for d in devicetree.devices if d.format.type == "iso9660"]):
> devicetree.updateDeviceFormat(dev)
> if not hasattr(dev.format, "mount"):
> # no mountable media
> --
> 1.8.3.1
Ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130917/e32fd29e/attachment.sig>
More information about the anaconda-patches
mailing list