• [gentoo-dev] [PATCH 1/4] dist-kernel-utils.eclass: pass on extra args t

    From Nowa Ammerlaan@21:1/5 to All on Mon Mar 3 18:50:01 2025
    Installkernel v56 has gained the capability of parsing optional
    arguments. Adjust the helper functions here so ebuilds can pass on
    these extra arguments directly to installkernel.

    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
    ---
    eclass/dist-kernel-utils.eclass | 72 +++++++++++++++++++++++----------
    1 file changed, 50 insertions(+), 22 deletions(-)

    diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass index 3d7315e9e94e..49977c18795a 100644
    --- a/eclass/dist-kernel-utils.eclass
    +++ b/eclass/dist-kernel-utils.eclass
    @@ -66,18 +66,37 @@ dist-kernel_get_image_path() {
    }

    # @FUNCTION: dist-kernel_install_kernel
    -# @USAGE: <version> <image> <system.map>
    +# @USAGE: [<version>] [<image>] [<system.map>] [<dir>] [<installkernel-args>...]
    # @DESCRIPTION:
    -# Install kernel using installkernel tool. <version> specifies
    -# the kernel version, <image> full path to the image, <system.map>
    -# full path to System.map.
    +# Install kernel using installkernel. Takes the following arguments:
    +#
    +# <version> -- the target kernel version (default: ${KV_FULL})
    +#
    +# <image> -- the full path to the kernel image (default: the image
    +# as reported by dist-kernel_get_image_path() in the ${KV_DIR}) +#
  • From Nowa Ammerlaan@21:1/5 to All on Mon Mar 3 18:50:01 2025
    Since we remove /usr/src/linux-KV_FULL but by design keep the /lib/modules/KV_FULL, we end up with some dead symlinks after
    depcleaning a dist-kernel. This has the unfortunate side effect of
    tricking systemd's kernel-install into thinking that a kernel image
    for this kernel still exists. Which leads to some ugliness further
    down the line. We can easily resolve the problem by cleaning up these
    dead symlinks.

    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
    ---
    eclass/kernel-install.eclass | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
    index cf34007844a8..67143278f368 100644
    --- a/eclass/kernel-install.eclass
    +++ b/eclass/kernel-install.eclass
    @@ -808,6 +808,9 @@ kernel-install_pkg_postrm() {
    find "${kernel_dir}" -depth -type d -empty -delete
    eend ${?}
    fi
    +
    + # Clean up dead symlinks
    + find -L "${EROOT}/lib/modules/${KV_FULL}" -type l -delete
    }

    # @FUNCTION: kernel-install_pkg_config
    --
    2.48.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nowa Ammerlaan@21:1/5 to All on Mon Mar 3 18:50:02 2025
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
    ---
    .../intel-microcode/intel-microcode-20240910_p20240915.ebuild | 2 +-
    .../intel-microcode/intel-microcode-20241112_p20241103.ebuild | 2 +-
    .../intel-microcode/intel-microcode-20250211_p20250211.ebuild | 2 +-
    3 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/sys-firmware/intel-microcode/intel-microcode-20240910_p20240915.ebuild b/sys-firmware/intel-microcode/intel-microcode-20240910_p20240915.ebuild
    index b2000fab7d45..f99a41e15b4e 100644
    --- a/sys-firmware/intel-microcode/intel-microcode-20240910_p20240915.ebuild +++ b/sys-firmware/intel-microcode/intel-microcode-20240910_p20240915.ebuild
    @@ -311,7 +311,7 @@ pkg_postrm() {
    pkg_postinst() {
    if use initramfs; then
    if use dist-kernel; then
    - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
    + dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" --all
    else
    # Don't forget to umount /boot if it was previously mounted by us.
    mount-boot_pkg_postinst
    diff --git a/sys-firmware/intel-microcode/