Files
fabolous005 95954b2d6b Prepare for publication: license, disclaimer, limitations, kernel 7.3.7, polkit action rename
- LICENSE: ebuilds GPL-2.0-only (LICENSE.GPL-2), everything else MIT.
- README: unofficial/no-affiliation and account-risk disclaimer; requirements
  and limitations (NVIDIA/ZFS/r8125 EAC modules not packaged, keys, ESP,
  one tested machine).
- AGENTS.md: the values table is the author's example machine.
- progress: CachyOS's key is on Epic's trusted list (was wrong).
- overlay: kernel 7.3.7_p2 with module cleanup, compat -r3 (polkit action
  de.root64.engler-labs.eac-openrc-compat), pkgcheck fixes.
2026-12-04 09:13:45 +01:00
..

cachyos-eac-kernel-bin

Repackages the CachyOS Easy Anti-Cheat Linux v2 boot chain unchanged:

From CachyOS Installed to
linux-cachyos-eac (kernel + signed modules) <modules>/<ver>-cachyos-eac/ (kernel at vmlinuz); <modules> is kmod's module_directory, /lib/modules on Gentoo
systemd-boot-cachyos-signed /usr/lib/cachyos-eac/systemd-bootx64.efi.signed
cachyos-eac-signing-key (CachyOS EAC CA) /usr/share/cachyos-eac/, /var/lib/sbctl/keys/custom/db/
eac-status from cachyos-settings /usr/sbin/eac-status (ESP, kernel and loader paths patched to ask eac-boot)

The kernel is not handled by installkernel or uefi-mkconfig, and nothing is re-signed. A second signature, or a kernel started without the CachyOS-signed systemd-boot, fails the EAC checks.

eac-boot

Command Does
eac-boot enroll appends the CachyOS EAC CA to the Secure Boot db, signed with your KEK; every other entry stays
eac-boot setup [bootnum] update, then creates the firmware entry and puts it at the end of BootOrder; bootnum (4 hex digits) replaces the entry with that number
eac-boot update dracut initramfs, kernel and systemd-boot to the ESP, writes the loader entry
eac-boot boot starts the EAC entry once (BootNext, and systemd-boot's one-shot entry) and reboots
eac-boot cmdline, esp, kernel-dir, loader print the command line and the paths in use

ESP layout with the defaults:

<esp>/<machine-id>/linux-cachyos-eac/{vmlinuz,initramfs}   KERNEL_DIR
<esp>/EFI/cachyos-eac/systemd-bootx64.efi                  LOADER_DIR
<esp>/loader/entries/cachyos-eac.conf                      ENTRY
<esp>/loader/loader.conf

<esp>/loader/ is where every systemd-boot looks, whatever its own directory. If the ESP already has a loader.conf from another systemd-boot, it is kept; eac-boot boot then picks the EAC entry through LoaderEntryOneShot.

Settings: /etc/eac-boot.conf

Shell KEY=value lines, all optional:

Key Default
ESP first vfat mount of /efi, /boot/efi, /boot
KERNEL_DIR <machine-id>/linux-cachyos-eac (relative to the ESP)
LOADER_DIR EFI/cachyos-eac (relative to the ESP)
ENTRY cachyos-eac.conf
LABEL CachyOS EAC (firmware entry name)
CMDLINE /etc/kernel/cmdline, else /proc/cmdline; the EAC options are appended
MODULES_DIR kmod's module_directory
KEK_KEY, KEK_CERT KEK/KEK.key, KEK/KEK.pem in sbctl's keydir (/etc/sbctl/sbctl.conf, default /var/lib/sbctl/keys)
OWNER_GUID sbctl's GUID file, else random

eac-status checks the kernel only under KERNEL_DIR and the loader only under LOADER_DIR, and expects the kernel modules where kmod looks for them.

After the first setup, every package update runs eac-boot update from pkg_postinst. Changing KERNEL_DIR, LOADER_DIR, ENTRY or LABEL after setup leaves the old files and firmware entry behind: remove them by hand.

One-time setup

  1. eac-boot enroll: appends CachyOS EAC CA to db with an authenticated write signed by your KEK, so Setup Mode is not needed and nothing else in db changes: your own keys, Microsoft's and any other vendor's stay. Run it again and it sees the CA and does nothing. Do not use sbctl enroll-keys --append: it re-adds sbctl's keys and the Microsoft certificates, and the firmware keeps the duplicates. To remove duplicates that are already there, see the troubleshooting doc. sbctl list-enrolled-keys prints the issuer of each certificate, so some names appear twice in a correct db.
  2. Your normal kernels must be signed with the sbctl db key. With USE=secureboot and no SECUREBOOT_SIGN_KEY, secureboot.eclass already uses /var/lib/sbctl/keys/db/db.key. Check with sbverify --list <esp>/EFI/Gentoo/<kernel>.efi.
  3. eac-boot setup [bootnum]. The entry goes to the end of BootOrder: firmware boot menus (F12) only list BootOrder entries, and at the end it never boots by default. eac-boot boot starts it once through BootNext.
  4. Have the BitLocker recovery key of the Windows disk ready, then enable Secure Boot in the firmware.
  5. eac-boot boot, then eac-status inside the EAC boot. Every check has to be [ OK ].

The next normal reboot starts the default entry again.

Not available in the EAC boot

  • Modules not built by CachyOS: bcachefs, kvmfr and anything built by linux-mod-r1.
  • Lockdown integrity blocks MSR writes, /dev/mem and hibernation.

Bumping

CachyOS removes old packages from the mirror. Rename the ebuild to the new kernel <pkgver>_p<pkgrel>, update SDBOOT_PV, KEY_PV and SETTINGS_PV from https://mirror.cachyos.org/repo/x86_64/cachyos/, then run ebuild <file> manifest.