On 15.12.2011 18:36, Colin Guthrie wrote: > 'Twas brillig, and Thierry Vignaud at 15/12/11 16:16 did gyre and gimble: >>>>>> Though, as Harald says, it might prove to be slow, since we'd have to >>>>>> compare every alias of every module considered by dracut against the >>>>>> system modalias list... Well, I guess we'll see. >>>> >>>> Yeah I guess it would be good to have the this cached into some kind of >>>> matrix, but that might be a bit tricky in sh... >> perl rules! > > :) > >> More seriously, ever heard of modprobe --resolve-alias? > > Ohh, that could indeed do most of the hard work.
Right, we could run all the modaliases through it and then get a simple module list to compare against (dunno why I didn't think of that). One problem with that is that -R is fairly new, but dunno if that is a problem. It can also be emulated with -ivn and filtering, though, if necessary: http://svnweb.mageia.org/soft/drakx-kbd-mouse-x11/trunk/tools/display_driver_helper?r1=2245&r2=2244&pathrev=2245 > Anssi just in case you work on this over the holidays, I think Harald > might not be about much until the new year... just in case you try to > poke him on IRC for any reason. OK. -- Anssi Hannula
