Skip to content

Commit

Permalink
installkernel-9999.ebuild: fixup version checks
Browse files Browse the repository at this point in the history
See-also: gentoo/gentoo#40573
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
  • Loading branch information
Nowa-Ammerlaan committed Feb 19, 2025
1 parent 2fe4b0b commit 2c49200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installkernel-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit linux-info
inherit eapi9-ver linux-info

DESCRIPTION="Gentoo fork of installkernel script from debianutils"
HOMEPAGE="
Expand Down Expand Up @@ -182,7 +182,7 @@ src_install() {

pkg_postinst() {
# show only when upgrading to 14+
if [[ -n "${REPLACING_VERSIONS}" ]] && ver_test "${REPLACING_VERSIONS}" -lt 14; then
if ver_replacing -lt 14; then
elog "Version 14 and up of ${PN} effectively merges"
elog "${PN}-gentoo and ${PN}-systemd."
elog "Switching between the traditional installkernel and systemd's"
Expand All @@ -196,7 +196,7 @@ pkg_postinst() {
fi

# show only on first install of version 20+
if [[ -z "${REPLACING_VERSIONS}" ]] || ver_test "${REPLACING_VERSIONS}" -lt 20; then
if [[ -z "${REPLACING_VERSIONS}" ]] || ver_replacing -lt 20; then
if has_version "sys-boot/grub" && ! use grub; then
elog "sys-boot/grub is installed but the grub USE flag is not enabled."
elog "Users may want to enable this flag to automatically update the"
Expand Down

0 comments on commit 2c49200

Please sign in to comment.