[PATCH] Don't mount cdroms that contain no mountable media. (#1000889)

Brian C. Lane bcl at redhat.com
Tue Sep 3 21:06:33 UTC 2013


On Tue, Sep 03, 2013 at 02:10:11PM -0500, David Lehman wrote:
> ---
>  pyanaconda/image.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/pyanaconda/image.py b/pyanaconda/image.py
> index adc0660..86e7937 100644
> --- a/pyanaconda/image.py
> +++ b/pyanaconda/image.py
> @@ -190,6 +190,10 @@ def opticalInstallMedia(devicetree, mountpoint=INSTALL_TREE):
>  
>      for dev in devicetree.getDevicesByType("cdrom"):
>          devicetree.updateDeviceFormat(dev)
> +        if not hasattr(dev.format, "mount"):
> +            # no mountable media
> +            continue
> +
>          try:
>              dev.format.mount(mountpoint=mountpoint)
>          except FSError:
> -- 
> 1.8.1.4
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches

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/20130903/c402dcfc/attachment.sig>


More information about the anaconda-patches mailing list