GeezerVison is showing github.com — Releases · tmiland/kernel-installer
Releases · tmiland/kernel-installer
v1.10.1
Highlights
- CachyOS 7.3.6-3: the pinned source is now 7.3.6-3; the config and patch SHA256s are unchanged, the PKGBUILD revision moved.
- Scheduled auto-pin: a weekly
Pin CachyOS workflow resolves the latest stable CachyOS release, updates the source/config/patch pins and version strings, validates with --config-only BORE, and opens or updates chore/cachyos-pin. Enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests for the PR step.
- Fedora CI: the Fedora 44 image's dracut/libkmod mismatch is worked around by skipping the distro initramfs hook in CI; the boot smoke test builds its own initramfs.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.10.1/kernel_installer.sh
sudo bash kernel_installer.sh
For the latest CachyOS kernel without waiting for a pin:
sudo ./kernel_installer.sh --cachyos-latest --sched bore --profile workstation --cpu x86-64-v4
Notes
--cachyos-latest remains the fastest path; the pinned default now tracks 7.3.6-3.
- The auto-pin PR is a normal PR; the fast config-only checks run on it.
- Secure Boot users: 1.8.0+ signs kernels automatically when the MOK key is present.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.10.0
Highlights
- CachyOS 7.3.6: the pinned source is now 7.3.6-2, with the current config and BORE/BMQ patches.
--cachyos-latest: resolves the latest stable CachyOS release at runtime (7.3.6-3 at release time) and uses the current config/BORE/BMQ patches from the CachyOS repositories. No installer release is needed for future CachyOS kernel updates.
- Pinned vs latest: the source tarball stays GPG-verified;
--cachyos-latest fetches the config and patches over HTTPS without pinned SHA256 values, so it is not bit-reproducible. --source cachyos remains the pinned, reproducible path.
- CI: the fast config-only matrix includes a CachyOS latest check;
curl is preinstalled for it.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.10.0/kernel_installer.sh
sudo bash kernel_installer.sh
For the latest CachyOS kernel without waiting for an installer release:
sudo ./kernel_installer.sh --cachyos-latest --sched bore --profile workstation --cpu x86-64-v4
Notes
--cachyos-latest requires curl (the resolver runs before the dependency setup); the installer stops with a clear message if it is missing.
- The latest mode is not bit-reproducible; use
--source cachyos when you need pinned config/patch SHAs.
- Secure Boot users: 1.8.0+ signs kernels automatically when the MOK key is present.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.9.0
Highlights
- BMQ scheduler:
--sched bmq applies the pinned 7.3 PRJC/BMQ patch (SCHED_ALT + SCHED_BMQ), mutually exclusive with BORE. It targets desktop interactivity; PSI and sched_ext are not available with BMQ (Kconfig !SCHED_ALT).
- AutoFDO:
--autofdo <profile> builds with a clang sample-use profile; --autofdo-collect builds a profiling kernel and saves vmlinux-<release> for create_llvm_prof. Requires clang 17+, a 7.x source, and an LBR/BRS-capable CPU.
- Fast validation:
--config-only runs the full configuration path and exits before compiling, for quick checks.
- CI: PRs run a config-only matrix (BORE, BORE+LTO, BMQ, RT, hardened, AutoFDO) plus the distro installs; the full kernel build+boot matrix runs on main and on demand.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.9.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README for BMQ, AutoFDO, and --config-only.
Notes
- BMQ and BORE are mutually exclusive; BMQ disables PSI and sched_ext by Kconfig.
- AutoFDO gains are workload-specific; the profile must be regenerated when the kernel or workload changes.
--config-only needs the source tree but does not compile or install.
- Secure Boot users: the installer signs kernels automatically (1.8.0+) when the MOK key is present.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.8.0
Highlights
- Secure Boot auto-signing — new kernels are signed automatically after installation. The installer signs the conventional
/boot/vmlinuz-<release> and any BLS linux= target, strips old signatures, verifies the result with sbverify, and replaces the image atomically.
- DKMS — writes
/etc/dkms/framework.conf.d/secure-boot.conf before the kernel packages install, so modules built by the kernel postinst or dkms autoinstall are signed with the same MOK key (DKMS 3+).
- Safe by default — refuses non-RSA MOK keys (shim cannot verify ECDSA), stops the install when Secure Boot is enabled and the key or
sbsign/sbverify is missing, and warns when the key is not enrolled in MOK.
- Opt-out —
--no-sign; defaults are /var/lib/shim-signed/mok/MOK.priv + MOK.der (a PEM certificate is also accepted).
- CI — the signing tests generate a minimal PE fixture and run unprivileged on every runner; the full install matrix still passes.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.8.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README's "Secure Boot auto-signing" section.
Notes
sbsigntool (Debian/Ubuntu) or sbsigntools (Fedora/RHEL, EPEL) is required for signing; it is not auto-installed.
- Automatic DKMS module signing needs DKMS 3 or newer; older versions ignore the drop-in and the installer warns.
- Enroll the MOK key before enabling Secure Boot; this release signs kernels but cannot enroll keys for you.
- Existing Secure Boot setups: run the installer with the MOK key present, or pass
--no-sign to keep the previous behavior.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.7.0
Highlights
- linux-hardened variant:
--hardened builds vanilla 7.3.1 with the pinned linux-hardened v7.3.1-hardened1 patch, after verifying its SHA256.
- Pinned and isolated: the patch is generated against exactly 7.3.1 (it does not apply to 7.3.4) and the variant is vanilla-only — it cannot be combined with CachyOS/BORE or the CachyOS-only CPU/BBR3/HZ choices.
- Hardening assertion: the build verifies
CONFIG_SECURITY_PERF_EVENTS_RESTRICT=y after olddefconfig.
- Naming: the patch sets
EXTRAVERSION = -hardened1, so the release is 7.3.1-hardened1-vanilla-workstation.
- CI: a Debian 13 job builds
--hardened --profile workstation, verifies the release/config, and boots it in QEMU.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.7.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README for the hardened variant and the other build options.
Notes
--hardened requires vanilla source and pins 7.3.1; the patch does not apply to 7.3.4.
- The variant is not compatible with
--source cachyos, BORE, or the CachyOS-only choices.
- Review the linux-hardened documentation for the full set of hardening changes.
- Keep a known-good distribution kernel in GRUB; Secure Boot users must sign the kernel or disable Secure Boot.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.6.0
Highlights
- PREEMPT_RT:
--rt builds a mainline real-time kernel (6.12+): EXPERT + PREEMPT_RT, a static preemption model, and PREEMPT_DYNAMIC/NONE/VOLUNTARY/LAZY cleared.
- Profile-aware assertions: the profile checks follow the RT override — transparent hugepages are unavailable on RT, and the preemption model is asserted through
PREEMPT_RT + PREEMPTION (the symbol layout differs between 6.12 and 7.x).
- Naming:
--rt appends -rt, e.g. 7.3.4-cachyos-workstation-bore-rt.
- CI: the 6.12.112 smoke job builds with
--binder --sched-ext --rt and boots the RT kernel in QEMU.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.6.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README for the RT variant and the other build options.
Notes
--rt is the mainline PREEMPT_RT kernel, not the lowlatency profile. It costs throughput and is intended for audio, robotics, and industrial latency work.
--rt requires kernel 6.12 or newer.
- Transparent hugepages are disabled by Kconfig on RT kernels.
- Keep a known-good distribution kernel in GRUB; Secure Boot users must sign the kernel or disable Secure Boot.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.5.0
Highlights
- Timer frequency:
--hz 100|250|300|500|600|750|1000. 500/600/750 are CachyOS choices; the flag overrides the profile's HZ.
- BBRv3:
--bbr3 makes BBRv3 the default TCP congestion control (CachyOS source only).
- Android Binder:
--binder enables Binder IPC and binderfs for Waydroid.
- sched_ext:
--sched-ext enables the sched_ext class and the BTF/debug info it needs (kernel 6.12+); run a userspace scx_* scheduler.
- Distinct kernels: flags extend the localversion (
-hz600, -bbr3, -binder, -sched-ext); profile assertions follow the overrides.
- CI: Debian BORE+LTO builds with
--hz 600 --bbr3; the profile smoke job builds 6.12.112 with --binder --sched-ext.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.5.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README for the new options.
Notes
--hz 500/600/750 and --bbr3 require --source cachyos.
--sched-ext re-enables debug info/BTF (the default is DEBUG_INFO_NONE), so the build is larger and slower; dwarves (pahole) is installed on Debian.
- sched_ext does not replace BORE at build time; it is a runtime scheduling class.
- Keep a known-good distribution kernel in GRUB; Secure Boot users must sign the kernel or disable Secure Boot.
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.4.0
Highlights
- Use-case optimization profiles:
--profile desktop|workstation|gaming|server|laptop, with --custom-config overrides applied last.
- CachyOS source + BORE: pinned CachyOS 7.3.4-1 source, verified with the CachyOS release keys; pinned config and BORE patch;
CONFIG_CACHY=y and CONFIG_SCHED_BORE=y.
- Boot verification: QEMU boot smoke test for every distro install job, including the profile and BORE jobs.
- CPU tuning and Clang LTO:
--cpu generic|native|zen4|x86-64-v3|x86-64-v4 and --lto none|thin|full.
- Named kernels: automatic
CONFIG_LOCALVERSION such as 7.3.4-cachyos-workstation-bore, plus --kernel-tag.
- Safer installs: install parent created
0700, --uninstall defaults to the running release, and a DKMS check warns when modules need rebuilding.
- Docs: README highlights and a draft follow-up blog post.
Install
curl -fsSLO https://github.com/tmiland/kernel-installer/releases/download/v1.4.0/kernel_installer.sh
sudo bash kernel_installer.sh
See the README for profiles, CachyOS BORE, CPU/LTO, naming and the QEMU boot test.
Notes
- BORE is a pinned CachyOS patch, not mainline.
- Boot verification uses a minimal initramfs under QEMU, not full userspace or bare metal.
- Keep a known-good distribution kernel in GRUB; Secure Boot users must sign the kernel or disable Secure Boot.
- Named kernels need their DKMS modules rebuilt (
dkms autoinstall -k <release>).
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.1
v1.3.1
Patch release with the 11 fixes reported by @davmonk in #62–#72, merged in #73.
Security and input hardening
- #62 The build directory is recreated with
mkdir (no -p), refuses symlinks, directories owned by another user, and non-sticky shared parents; an existing tarball is never trusted without verification.
- #63 Kernel versions are validated against a full whitelist before they can reach
run_ok's eval; distro-style versions (7.0.0-38-generic, 6.17.1-300.fc44.x86_64) still work.
- #64 The log defaults to
/var/log/kernel-installer/kernel_installer.log in a 0700 directory; a custom LOGFILE and .1 are refused if they are symlinks, not root-owned regular files, or in a group/other-writable directory.
- #65
slib no longer writes unitest.txt or stopspinning into the caller's current directory.
- #67 Checksums are read from
gpgv's verified output, not from text appended after the clearsigned block.
- #68 Verification uses a throwaway
GNUPGHOME, exact key addresses and pinned fingerprints. Checkout runs import the bundled src/keys/kernel.org.asc; piped runs fall back to WKD. Temporary gpg homes live under /tmp to stay within the gpg-agent socket path limit.
Robustness
- #69 Build cleanup deletes the marker last, so an interrupted cleanup (notably on btrfs) can be retried by the next run.
- #70
flock prevents a second install or uninstall from deleting the active run's build directory or rotating its log.
- #71 Debian/Ubuntu installs headers and image in one
apt-get transaction, matching the existing single dnf transaction.
Update path
- #66 / #72
--update selects the .sh release asset explicitly, requires and verifies a SHA256SUMS asset, downloads next to the script for an atomic mv, and refuses a piped run. The new release workflow attaches kernel_installer.sh and SHA256SUMS to every release.
Behaviour notes
- The default log path moved from
/var/log/kernel_installer.log to /var/log/kernel-installer/kernel_installer.log.
--update now refuses releases without a SHA256SUMS asset.
- A
--dir parent that is group/other-writable must be sticky (e.g. /tmp, /var/tmp); otherwise the script asks for a private directory.
GNUPGHOME now defaults to a throwaway keyring. Set GNUPGHOME=/path to reuse one.
Verification
- 22/22
tests/test_*.sh pass.
- PR #73 test-install matrix: Debian 12/13, Ubuntu 22.04/24.04, Fedora 44, both mainline jobs, and the custom-config smoke test all green; shellcheck and the slib pin check pass.
Full changelog: v1.3.0...v1.3.1
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.0
Update kernel-installer version from 1.2.6 to 1.3.0
Highlights since v1.2.6:
- feat: install, verify and uninstall LOCALVERSION-suffixed kernels — the built release is read from
make -s kernelrelease instead of assumed (#59)
- feat: detect the distro from
/etc/os-release ID/ID_LIKE; legacy banner files are display-only fallback (#59)
- ci: the matrix now builds and installs the current stable kernel weekly (Debian 13, Fedora 44) in addition to the pinned 6.12.112 (#60), including point-zero tarball handling (#61)
- fix:
--mainline downloads and installs again (#22)
- fix: prompts are read from the terminal on piped runs;
$self stays empty with uutils coreutils (#34, #26)
- fix: root check runs before the lsb-release prompt/distro detection; relative
--dir resolves at argument parsing; verification TMPDIR is isolated (#58 — #46, #48, #51, #52)
- fix:
systemctl kexec loads the new kernel first (#30); --uninstall/chk_kernel look kernels up by release (#32)
- fix: Linux Mint and LMDE are detected as the Debian family (#23)
- fix: build failures point at the real error; debug info is really disabled for DWARF5; the kernel.org banner is fetched once with short timeouts (#38, #42, #36)
- fix: Ubuntu/Mint distro config builds work (certificates, gawk) (#40)
- fix: logging — plain output off-terminal, previous log kept, LOGFILE, verification errors shown (#57)
- fix(debian): python3 installed for the kernel >= 6.13 build dependency check (#60)
- docs: README brought in line with current behavior and dependencies (#24, #45)
What's Changed
- fix: make --mainline download and install again by @davmonk in #22
- fix: detect Linux Mint and LMDE as Debian family by @davmonk in #23
- docs: bring the README in line with current behavior by @davmonk in #24
- fix: do not source ./src/slib.sh from the cwd on piped runs by @davmonk in #26
- fix: run interactive --config targets on the terminal by @davmonk in #28
- fix: load the new kernel before systemctl kexec by @davmonk in #30
- fix: look kernels up by release in --uninstall and chk_kernel by @davmonk in #32
- fix: read prompts from the terminal when the script is piped in by @davmonk in #34
- fix: fetch the kernel.org version banner once, with short timeouts by @davmonk in #36
- fix: point at the real error when the kernel build fails by @davmonk in #38
- fix: build with an Ubuntu/Mint distro config (certificates, gawk) by @davmonk in #40
- fix: really disable debug info when the config selects DWARF5 by @davmonk in #42
- docs: list gawk and elfutils-devel in the README dependencies by @davmonk in #45
- Logging improvements: plain output off-terminal, keep the previous log, LOGFILE, show verification errors by @davmonk in #57
- Fix #46, #48, #51, #52: root-check order, relative --dir, verification TMPDIR, lint by @tmiland-labs in #58
- fix: install LOCALVERSION kernels and detect the distro from /etc/os-release by @tmiland-labs in #59
- ci(test-install): build and install the current stable kernel (#43) by @tmiland-labs in #60
- ci(test-install): accept point-zero tarball names in latest-install verify by @tmiland-labs in #61
Full Changelog: v1.2.6...v1.3.0
Contributors
davmonk and tmiland-labs
Assets
4
Loading
Uh oh!
There was an error while loading. Please reload this page.
|