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

Vratislav Podzimek vpodzime at redhat.com
Mon Nov 4 15:48:10 UTC 2013


On Mon, 2013-11-04 at 10:27 -0500, Chris Lumens wrote:
> > 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 /?
It is our constant, but I guess I can add an extra / to be sure. Fixing
locally.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list