sys-kernel/booster: drop version 0.11

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
2025-11-28 20:45:20 +03:00
parent 507f65742e
commit af328c7e7e
5 changed files with 26 additions and 140 deletions

View File

@@ -1,31 +0,0 @@
From dce149dc0ce7b13bc6a27997c0b2fe9b9591c752 Mon Sep 17 00:00:00 2001
From: Alexander Miroshnichenko <alex@millerson.name>
Date: Tue, 1 Oct 2024 15:59:44 +0300
Subject: [PATCH] Add Gentoo kernel config search path
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
---
generator/kmod.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/generator/kmod.go b/generator/kmod.go
index d4bf31dbed5e..46960d639cc2 100644
--- a/generator/kmod.go
+++ b/generator/kmod.go
@@ -734,6 +734,11 @@ func readCompiledInComponents(kernelVersion string) (set, error) {
debug("reading %s", f.Name())
defer f.Close()
r = f
+ } else if f, err := os.Open("/lib/modules/" + kernelVersion + "/config"); err == nil {
+ // Gentoo have config in src.
+ debug("reading %s", f.Name())
+ defer f.Close()
+ r = f
} else if f, err := os.Open("/proc/config"); err == nil {
debug("reading %s", f.Name())
defer f.Close()
--
2.39.3

View File

@@ -1,15 +0,0 @@
#!/bin/sh
COMMAND="${1:?}"
KERNEL_VERSION="${2:?}"
# Do not attempt to create initramfs if the supplied image is already a UKI
[ "${KERNEL_INSTALL_IMAGE_TYPE}" = "uki" ] && exit 0
# Only run if the initrd generator is booster
[ "${KERNEL_INSTALL_INITRD_GENERATOR}" = "booster" ] || exit 0
# only run when the COMMAND is add, and fewer than 5 arguments are passed
[ "${COMMAND}" = "add" ] && [ "${#}" -lt 5 ] || exit 0
booster "$([ "${KERNEL_INSTALL_VERBOSE}" = 1 ] && echo --verbose)" build --force --kernel-version="${KERNEL_VERSION}" "${KERNEL_INSTALL_STAGING_AREA}/initrd" || exit 1