pkg: fedora: Provide installonlypkg(kernel)

This allows configuring dnf to never remove the running kernel, and
instead keep a configurable amount of kernels around (3 by default).

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
This commit is contained in:
Dorian Stoll 2020-03-18 09:15:54 +01:00
parent 00f8ba89c4
commit ba040b7e5b
No known key found for this signature in database
GPG key ID: F1DACD02C619442A

View file

@ -50,6 +50,8 @@ Release: %{kernel_release}%{?dist}
License: GPLv2
URL: https://github.com/linux-surface/linux-surface
Provides: installonlypkg(kernel-surface)
Requires(pre): coreutils, systemd >= 203-2, /usr/bin/kernel-install
Requires(pre): dracut >= 027
Requires(pre): linux-firmware >= 20150904-56.git6ebf5d57
@ -100,6 +102,7 @@ Microsoft Surface.
%package devel
Summary: Development package for building kernel modules for kernel-surface
AutoReqProv: no
Provides: installonlypkg(kernel-surface)
%description devel
This package provides kernel headers and makefiles sufficient to build modules