summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-11-08 14:25:40 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-11-10 13:17:29 +0100
commitddd1fba307a8488dac469ecb6931988c7eeef61d (patch)
treefd77bbad419844fa599cf40b38db1b483a05a36f /eclass
parentkernel-install.eclass: bump minimal dracut version (diff)
downloadgentoo-ddd1fba307a8488dac469ecb6931988c7eeef61d.tar.gz
gentoo-ddd1fba307a8488dac469ecb6931988c7eeef61d.tar.bz2
gentoo-ddd1fba307a8488dac469ecb6931988c7eeef61d.zip
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dist-kernel-utils.eclass14
1 files changed, 0 insertions, 14 deletions
diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
index 67ae2f7b510d..d455c88ebee1 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.