diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-31 09:54:33 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-02-02 07:16:14 +0100 |
commit | e9158adfb45024eebdb4e0487bf1b1bd55a4b87b (patch) | |
tree | d2e825d721a6a908b2a496a4e3305538e9287f56 /sys-kernel/dkms | |
parent | sys-boot/lilo: add installkernel as optfeature (diff) | |
download | gentoo-e9158adfb45024eebdb4e0487bf1b1bd55a4b87b.tar.gz gentoo-e9158adfb45024eebdb4e0487bf1b1bd55a4b87b.tar.bz2 gentoo-e9158adfb45024eebdb4e0487bf1b1bd55a4b87b.zip |
sys-kernel/dkms: add installkernel as optfeature
package installs /usr/lib/kernel/install.d/40-dkms.install which
will be executed by systemd's kernel-install (i.e. if the systemd-kernel-install
flag is enabled).
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sys-kernel/dkms')
-rw-r--r-- | sys-kernel/dkms/dkms-3.0.12.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys-kernel/dkms/dkms-3.0.12.ebuild b/sys-kernel/dkms/dkms-3.0.12.ebuild index 370b9e0d2340..832fba5761ab 100644 --- a/sys-kernel/dkms/dkms-3.0.12.ebuild +++ b/sys-kernel/dkms/dkms-3.0.12.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit linux-info +inherit linux-info optfeature DESCRIPTION="Dynamic Kernel Module Support" HOMEPAGE="https://github.com/dell/dkms" @@ -49,3 +49,8 @@ src_install() { einstalldocs keepdir /var/lib/dkms } + +pkg_postinst() { + optfeature "automatically running \"dkms autoinstall\" on each kernel installation" \ + "sys-kernel/installkernel[systemd]" +} |