[master/rhel7-branch][PATCH] Make network-fetcheddriver disk .iso files work (#1003595)

Chris Lumens clumens at redhat.com
Mon Nov 4 15:27:33 UTC 2013


> diff --git a/dracut/driver-updates b/dracut/driver-updates
> index 1800087..685012d 100755
> --- a/dracut/driver-updates
> +++ b/dracut/driver-updates
> @@ -41,6 +41,7 @@ import sys
>  import os
>  import subprocess
>  import time
> +import glob
>  
>  log = logging.getLogger("DD")
>  
> @@ -529,6 +530,10 @@ def network_driver(dd_path):
>      skip_dds = set(oemdrv_list())
>  
>      log.info("Processing Network Drivers from %s" % dd_path)
> +    isos = glob.glob(dd_path + "*.iso")
> +    for iso in isos:
> +        select_dd(iso)
> +
>      process_dd(dd_path)
>  
>      # TODO: May need to add new drivers to /tmp/dd_modules to prevent them from being unloaded

Are you sure that dd_path will end with a /?

- Chris


More information about the anaconda-patches mailing list