Bug 1386202 - kernel should not require linux-firmware
Summary: kernel should not require linux-firmware
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Neil Horman
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-18 12:01 UTC by Marko Myllynen
Modified: 2016-10-25 14:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-25 13:45:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marko Myllynen 2016-10-18 12:01:28 UTC
Description of problem:
The linux-firmware package is huge:

# echo n | yum -C remove linux-firmware | grep size
Installed size: 96 M

None of this is useful on VMs / cloud images and is one of the biggest packages pulled in for no reason when creating minimal (cloud) images.

(For some reason one can actually do "yum -C remove linux-firmware" without issues but the next time kernel is upgraded linux-firmware is pulled in again.)

Version-Release number of selected component (if applicable):
RHEL 7.3 Beta / kernel-3.10.0-493.el7.x86_64

Comment 2 Neil Horman 2016-10-25 13:45:35 UTC
I'm going to close that as NOTABUG.  The statement "None of this is useful on
VMs" isn't correct. Its often not needed, but thats not guaranteed.  Some VF devices may well need firmware support, and I could easily
imagine that firmware would be needed for many usb devices that are assigned via
usb passthrough.


There is also the unified kernel issue to contend with.  That is to say, the
same kernel that runs on a VM runs on a physical system, and while firmware may
often not be needed on the former, it is almost always needed on the latter.

If a VM wants to save the 100M that firmware offers, a custom install would be in order in which the %post section of a kickstart script removed the exact firmware files that an administrator knows aren't needed for that installation

Comment 3 Richard W.M. Jones 2016-10-25 14:03:01 UTC
An alternative to consider is to reduce the strength of the
dependency from Requires -> Recommends.  This would allow
kickstarts to remove the linux-firmware package without
forcing RPM.

Note that weak dependencies are a RHEL 8 feature AIUI, so
it wouldn't change the resolution of this bug.


Note You need to log in before you can comment on or make changes to this bug.