Fiw-Gentoo-Dots/optional/kernel/guard
Fi3w0 0a2590256e
All checks were successful
Check and mirror to GitHub / checks (push) Successful in 25s
Check and mirror to GitHub / github-mirror (push) Successful in 9s
Sync custom kernel to CachyOS 7.2.10-1 and fix overlay and ESP refresh
- Kernel snapshot, patch and guard now match the running 7.2.10-fiw-nyx-v1.2.
- Overlay install replaces the tree instead of merging, so removed ebuilds
  cannot linger next to a newer Manifest; the old tree is restored on failure.
- Limine refresh removes ESP kernel folders the managed menu no longer lists.
- ESP discovery checks fstab FAT mounts, triggers x-systemd.automount and
  ignores the autofs placeholder.
2026-10-15 23:34:55 +02:00

19 lines
943 B
Text

# Installed as /etc/portage/env/sys-kernel/gentoo-kernel
# /proc/version → "... (fiw@gentoo) ..."
export KBUILD_BUILD_USER=fiw
export KBUILD_BUILD_HOST=gentoo
# Version the CachyOS patch in /etc/portage/patches was generated for.
# fiw-cachy-patch rewrites this line (the postsync hook runs it when CachyOS
# has a release for a new gentoo-kernel). A newer point release in the same
# series (7.2.x) reuses the existing patch and config.d unchanged; if the patch
# no longer applies, the build stops and the installed kernels stay as they are.
FIW_CACHY_PV=7.2.10
pre_src_prepare() {
[[ ${PV} == "${FIW_CACHY_PV}" ]] && return
if [[ ${PV%.*} != "${FIW_CACHY_PV%.*}" ]]; then
die "CachyOS patch is for ${FIW_CACHY_PV}; ${PV} is a new series. Run: fiw-cachy-patch ${PV}"
fi
ewarn "No CachyOS patch for ${PV} yet: reusing the ${FIW_CACHY_PV} patch and config."
ewarn "Fallbacks if it misbehaves: gentoo-kernel-bin entry, or CachyOS."
}