Bug 727234

Summary: Installation process does not install kernel-firmware package when needed
Product: [openSUSE] openSUSE 12.1 Reporter: Jordi Bruguera <jbruguera>
Component: NetworkAssignee: Martin Vidner <mvidner>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: jbruguera, lslezak
Version: Beta 1   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: No
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 log files

Description Jordi Bruguera 2011-10-29 22:17:31 UTC
Just installed 12.1 on a thinkpad t420 laptop which has a Centrino Ultimate-N 6300 (rev 05), this wifi card isn't showed in yast lan module and isn't configured of course.

After some googling seems this wifi network device needs to load some firmware found in the kernel-firmware package. With openSUSE 11.4 this was automated, so I open this bugfix request.
Comment 1 Jordi Bruguera 2011-10-29 22:19:19 UTC
I forgot to mention, kernel-firmware package was not installed. After insatlling this package and rebooting, the card was detected and directly usable from gnome3 network manager.
Comment 2 Andreas Jaeger 2011-10-30 06:35:46 UTC
Please attach the YaST log files as explained at http://en.opensuse.org/openSUSE:Bugreport_YaST
Comment 3 Jordi Bruguera 2011-10-30 08:59:40 UTC
Created attachment 459452 [details]
YaST2 log files
Comment 4 Andreas Jaeger 2011-10-30 16:01:49 UTC
Jordi, next time click the button "This comment provides the needed information. Remove the status of NEEDINFO from this bug." when providing information.
Comment 5 Jordi Bruguera 2011-10-30 17:20:15 UTC
Ok, I'll do next time, I have more things to report.
Comment 6 Martin Vidner 2011-10-31 09:44:37 UTC
Lada, do we have a mechanism for pulling in a firmware package during the installation?
Comment 7 Ladislav Slezák 2011-10-31 13:50:37 UTC
Um, maybe some hardware dependency could pull it in...

But kernel-firmware provides just this kind of dependencies (taken from "rpm -q --provides kernel-firmware" output):

...
firmware(iwlwifi-100-5.ucode)
firmware(iwlwifi-1000-3.ucode)
firmware(iwlwifi-1000-5.ucode)
firmware(iwlwifi-3945-2.ucode)
...

No idea how can be these requirements added to the package manager...

Michael, any idea?

It's also strange that in 11.4 it was OK...
Comment 8 Michael Andres 2011-11-02 10:43:50 UTC
For hardware dependencies you have to look at the 'supplements' (rpm -q --supplements), in particular at the modaliases:

  modalias(kernel-desktop:pci:v000010DEd00000635sv*sd*bc03sc0[02]i00*)

The 'PACKAGE:' prefix (kernel-desktop:) is optional and will simply require hardware being present _and_ PACKAGE being installed.


Question would be if, in absence off the kernel-firmware package, 'zypper install-new-recommends' would have selected it. If not, it might be some hardwaredep missing.

In doubt it might be helpful so send the list of modaliases found on the system to check whether kernel-firmware should have been matching. A command to get them would be:

  find /sys -name modalias | xargs grep . >/tmp/modaliases

 (The file will contain '/sys/PATH/modalias:MODALIAS' lines. kernel-firmware
  should have been selected, if a modalias template supplemented by kernel-
  firmware matches (shell glob) a MODALIAS in the above list. And of course
  kernel-firmware must not be involved in some dependency conflict)


--
BUT  be sure it is not related to bug #721810 - "Ignore recommended packages for already installed packages". 

In the log I see some 'ignorealreadyrecommended=1' during installation. This disables hardware dependencies, as it's an always-installed-system-peudo-package which would recommend the supplementing kernel-firmware package.
Comment 9 Stephan Kulow 2011-11-02 12:34:19 UTC
*** Bug 724611 has been marked as a duplicate of this bug. ***
Comment 10 Stephan Kulow 2011-11-02 12:36:20 UTC
unsubmited fix

*** This bug has been marked as a duplicate of bug 725096 ***
Comment 11 Ladislav Slezák 2011-11-02 12:39:49 UTC
Just a note to comment #8: I have fixed yast2-packager to set ignoreAlreadyRecommended to false during fresh installation/upgrade (in yast2-packager-2.21.14), so this should not be a problem.