EAC Linux v2 on Gentoo with OpenRC: ebuilds, host config, tools, docs

This commit is contained in:
2026-12-04 06:57:53 +01:00
commit dec92adb08
29 changed files with 1566 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
# Progress, decisions and open items
## Timeline (2026)
- **11-24..26:** first design: EFI-stub boot of the CachyOS kernel with a
hand-made initramfs. Dropped: EAC wants a CachyOS-signed boot manager that
measures into the TPM (systemd-boot). EFI stub, GRUB, Limine, rEFInd and a
self-signed systemd-boot do not pass.
- **11-26/27:** `cachyos-eac-kernel-bin` written and installed. The first emerge
failed in `pkg_postinst` (`depmod -b "${EROOT}"`; `EROOT` is empty under EAPI
8), fixed with `"${EROOT:-/}"`. Secure Boot db rebuilt: the CachyOS wiki's
`sbctl enroll-keys --append` had enrolled every certificate twice (14 -> 7).
`eac-boot setup 0201`, Secure Boot enabled.
- **11-28:** EAC boot works, `eac-status` passes. Hyprland did not start: on the
EAC kernel the iGPU is driven by i915 and becomes `card1`, the eGPU `card0`,
while `AQ_DRM_DEVICES` named `card0`. Fixed with a udev symlink. Early
microcode added to the initramfs (Gentoo's dracut defaults to
`early_microcode=no`), which cleared the kernel taint.
- **12-02:** Epic released EAC Linux v2 and Fortnite on Linux (beta).
- **12-03:** EAC service install on OpenRC, one failure at a time:
1. `failed with 127`: the setup could not load `libsystemd.so.0`.
2. `failed with 13`: `execvp systemd-run` failed.
3. `failed with 2`: `pkexec auth failed`. `pkttyagent` cannot serve it, and
hyprpolkitagent crashed on a stale live-ebuild SONAME (hyprtoolkit).
4. 15:44: install succeeded with `sys-apps/eac-openrc-compat`; Fortnite
reached the lobby and ran creative islands with EAC sessions active.
## Decisions
- **Repackage, never rebuild.** EAC only trusts signatures from keys on Epic's
list; a locally built kernel would carry the user's key. CachyOS's kernel,
modules and systemd-boot are installed byte for byte (`RESTRICT="mirror
strip"`, no installkernel, no secureboot eclass).
- **Separate firmware entry.** CachyOS's systemd-boot lives in
`EFI/cachyos-eac/` with its own entry at the end of BootOrder; Epic allows a
separate boot entry for protected games. The normal boot is unchanged.
- **Keep the user's db key.** The normal kernel is signed with it; Epic's rule
covers only the keys that verify the protected boot session.
- **dracut** for the initramfs: the CachyOS kernel has storage and filesystem
drivers as modules.
- **Compatibility layer, not systemd.** Only what the setup calls is provided;
everything else answers like a non-systemd host, so other software is not
misled into thinking systemd runs.
- **`systemd-run --user` through a session agent.** Proton sets no_new_privs,
which pkexec refuses. The agent starts commands from the Hyprland session,
outside that process tree and in the same elogind session as the polkit
agent. An `openrc --user` service would run in a background session where
polkit finds no agent.
- **Captured, not redistributed.** The EAC setup binary is Epic's; this
repository only documents what it calls.
## Open items
- `socket-activate.easyanticheat_eos` must be added to the default runlevel by
hand after the first install (AGENTS.md step 9). The `systemctl` shim could
map EAC's `sockets.target.d` drop-in to `rc-update add` on `daemon-reload`.
- Battle Royale matchmaking untested.
- The layer matches EAC setup 0.1.7; a later setup may call something new.
- CachyOS is not on Epic's published key list from October; Epic accepted the
CachyOS EAC CA in practice (12-02/03).
+66
View File
@@ -0,0 +1,66 @@
# Troubleshooting
## Logs
| Log | Path |
| --- | --- |
| EAC bootstrapper (UTC times) | `~/.local/share/com.epicgames.eglv2/compat/compatdata/Fortnite/pfx/drive_c/users/steamuser/AppData/Roaming/EasyAntiCheat/prod-fn/<deployment>/anticheatlauncher.log` |
| EAC setup (Linux side) | `~/.cache/com.epicgames.easyanticheat/service.log` |
| EAC service | `/var/log/socket-activate.easyanticheat_eos.log` |
| Compatibility layer | syslog tags `systemctl-compat`, `systemd-run-agent`, `socket-activate.easyanticheat_eos` (`/var/log/everything/current`) |
| Fortnite | `.../pfx/drive_c/users/steamuser/AppData/Local/FortniteGame/Saved/Logs/` |
| Hyprland | `$XDG_RUNTIME_DIR/hypr/*/hyprland.log`, gone after a reboot |
`Roaming/EasyAntiCheat/service.log` in the Proton prefix is from the Windows
installer and does not matter here.
## EAC service installation
The bootstrapper reports `Launcher finished with: 209, 'Easy Anti-Cheat service
installation failed with N'`. The setup's `service.log` says why:
| N | `service.log` | Cause | Fix |
| --- | --- | --- | --- |
| 127 | no new lines | the setup cannot load `libsystemd.so.0` | `sys-apps/eac-openrc-compat` (links it to libelogind) |
| 13 | `execvp systemd-run failed with No such file or directory` | no `systemd-run` | `sys-apps/eac-openrc-compat` |
| 13 | `systemd-run exited with code 1` | `systemd-run-agent` not running in the session | start it (AGENTS.md step 6) |
| 2 | `Running install with pkexec.` then `pkexec auth failed.` in the same second | no polkit agent registered for the session | run hyprpolkitagent; `pkttyagent` registers only for its own parent shell and cannot serve the setup |
| 2 | `pkexec request dismissed.` | the dialog was cancelled | launch again |
Polkit check from the session without a terminal:
`systemd-run --user --wait --pipe pkexec --disable-internal-agent /usr/bin/true`.
"No authentication agent found" means no agent; with an agent a dialog appears.
## Service
| Symptom | Cause | Fix |
| --- | --- | --- |
| Works once, fails after a reboot | `socket-activate.easyanticheat_eos` not in the runlevel | `rc-update add socket-activate.easyanticheat_eos default` |
| Service log prints the setup's usage text and exits 1 | `EAC_MODE_SERVICE=1` missing | check `socket_env` in `/etc/conf.d/socket-activate.easyanticheat_eos` |
| `systemd did not pass exactly the socket '@easyanticheat_eos'` | started without socket activation | start it only through the OpenRC service |
| `User 1000 not found in /var/lib/easyanticheat_eos/authorizedusers` | user not authorized | `pkexec /usr/local/bin/easyanticheat_eos authorizeuser --uid=1000` |
| `/usr/local/bin/easyanticheat_eos is not installed` from the OpenRC service | EAC has not installed itself yet | launch the game once |
## Boot and session
| Symptom | Cause | Fix |
| --- | --- | --- |
| Secure Boot violation on the EAC entry | CA not in db, or a file was re-signed | `eac-boot enroll`; re-emerge the kernel package |
| `eac-status`: two signatures | something re-signed the kernel or systemd-boot | re-emerge `cachyos-eac-kernel-bin`, `eac-boot update` |
| Root filesystem not found | initramfs built for another kernel | `eac-boot update` |
| Hyprland does not start in the EAC boot | `AQ_DRM_DEVICES` names `/dev/dri/cardN`; card numbers differ per kernel | `host/udev/61-dri-igpu.rules` and `/dev/dri/igpu` |
| `/proc/sys/kernel/tainted` not 0, `Running old microcode` | no early microcode in the initramfs | `sys-firmware/intel-microcode[initramfs]`, `eac-boot update`, reboot |
| `module verification failed` | an out-of-tree module (bcachefs, kvmfr) | not available in the EAC boot |
| hyprpolkitagent: `libaquamarine.so.N`, `libhyprtoolkit.so.N: cannot open shared object file` | a live Hyprland library changed its SONAME | find the stale package with `readelf -d` over `ldd`'s libraries, `emerge -1` it and its users |
| Entry missing from the F12 menu | entry not in BootOrder | `eac-boot setup 0201` |
Lockdown also blocks MSR writes (undervolting), `/dev/mem` and hibernation in
the EAC boot.
## Capturing what a new EAC setup does
If an EAC update changes what the setup calls, record the next first launch
with the tools in `../tools/` (see its README): `exec-snoop` for every exec
attempt with its arguments, `eac-catch` to keep the setup binary before EAC
deletes it, then `strings` on the binary for the commands and unit files it
contains.