Skip to content

spec: make linux-firmware weak(er) dependency

Jan Stancek requested to merge jstancek/centos-stream-9:bz2031113 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2031113 Upstream Status: RHEL only

commit 32271d0cd9bd52d386eb35497c4876a8f041f70b Author: Jan Stancek jstancek@redhat.com Date: Thu Jan 13 15:24:34 2022 +0100

spec: make linux-firmware weak(er) dependency

Users of cloud/VM instances want to save up to ~300 MB space,
because they rarely need firmware to be installed.

We already allow linux-firmware to be uninstalled, but problem
is that subsequent updates of kernel package pull it back.

Goal is:
1) Have firmware installed by default, and require user action
   to uninstall it.
2) If uninstalled, it should stay uninstalled after kernel update,
   and kernel can be updated freely without it.
3) If kept installed, minimal required linux-firmware version
   still needs to be enforced.

Make firmware weak dependency [1] (available since rpm 4.13),
but still enforce minimal version if it's installed.

[1] https://docs.fedoraproject.org/en-US/packaging-guidelines/WeakDependencies/

Signed-off-by: Jan Stancek <jstancek@redhat.com>

Signed-off-by: Jan Stancek jstancek@redhat.com

Edited by Jan Stancek

Merge request reports