* [gentoo-dev] [PATCH 1/2] kernel-install.eclass: bump minimal dracut version
@ 2023-11-08 19:09 Andrew Ammerlaan
2023-11-08 19:11 ` [gentoo-dev] [PATCH 2/2] kernel-install.eclass: drop workaround skipping dracut kernel-install Andrew Ammerlaan
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-11-08 19:09 UTC (permalink / raw)
To: gentoo-dev
This is part of a larger PR at
https://github.com/gentoo/gentoo/pull/33727. However these two eclass
patches are relatively trivial and independent from the rest, so lets do
these first.
From 97a3eea0ab38bbe235df0ee20ede152a2a5e4dc1 Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Date: Wed, 8 Nov 2023 14:24:25 +0100
Subject: [PATCH] kernel-install.eclass: bump minimal dracut version
059-r4 contains the fixes to the kernel-install plugin that we need
to be able to drop a workaround in dist-kernel-utils.eclass
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
---
eclass/kernel-install.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 03638cd2c57b5..ea6ba3569a170 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -52,7 +52,7 @@ IDEPEND="
sys-kernel/installkernel-gentoo
sys-kernel/installkernel-systemd
)
- initramfs? ( >=sys-kernel/dracut-049-r3 )"
+ initramfs? ( >=sys-kernel/dracut-059-r4 )"
# needed by objtool that is installed along with the kernel and used
# to build external modules
# NB: linux-mod.eclass also adds this dep but it's cleaner to have
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-dev] [PATCH 2/2] kernel-install.eclass: drop workaround skipping dracut kernel-install
2023-11-08 19:09 [gentoo-dev] [PATCH 1/2] kernel-install.eclass: bump minimal dracut version Andrew Ammerlaan
@ 2023-11-08 19:11 ` Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-11-08 19:11 UTC (permalink / raw)
To: gentoo-dev
This is part of a larger PR at
https://github.com/gentoo/gentoo/pull/33727. However these two eclass
patches are relatively trivial and independent from the rest, so lets do
these first.
From 0e4e64876732eb1d2794498a4f0446ec641bf978 Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Date: Wed, 8 Nov 2023 14:25:40 +0100
Subject: [PATCH] dist-kernel-utils.eclass: drop workaround skipping dracut
kernel-install
We have bumped the minimal version of dracut to 059-r4, this version
contains the fixes to the kernel-install plugin we need to prevent
the plugin from running again if the system is using uki's.
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
---
eclass/dist-kernel-utils.eclass | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/eclass/dist-kernel-utils.eclass
b/eclass/dist-kernel-utils.eclass
index 67ae2f7b510df..d455c88ebee1c 100644
--- a/eclass/dist-kernel-utils.eclass
+++ b/eclass/dist-kernel-utils.eclass
@@ -125,20 +125,6 @@ dist-kernel_install_kernel() {
# install the combined executable in place of kernel
image=${initrd%/*}/uki.efi
mv "${initrd}" "${image}" || die
- # We moved the generated initrd, prevent dracut from running again
- # https://github.com/dracutdevs/dracut/pull/2405
- shopt -s nullglob
- local plugins=()
- for file in "${EROOT}"/etc/kernel/install.d/*.install; do
- plugins+=( "${file}" )
- done
- for file in "${EROOT}"/usr/lib/kernel/install.d/*.install; do
- if ! has "${file##*/}" 50-dracut.install 51-dracut-rescue.install
"${plugins[@]##*/}"; then
- plugins+=( "${file}" )
- fi
- done
- shopt -u nullglob
- export KERNEL_INSTALL_PLUGINS="${KERNEL_INSTALL_PLUGINS} ${plugins[@]}"
if [[ ${KERNEL_IUSE_SECUREBOOT} ]]; then
# Ensure the uki is signed if dracut hasn't already done so.
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-08 19:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08 19:09 [gentoo-dev] [PATCH 1/2] kernel-install.eclass: bump minimal dracut version Andrew Ammerlaan
2023-11-08 19:11 ` [gentoo-dev] [PATCH 2/2] kernel-install.eclass: drop workaround skipping dracut kernel-install Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox