UPDATE-KERNEL(8)
π update-kernel(8) β bestie edition π
ok so this is from the System Manager's Manual and it's called update-kernel, and literally the whole personality of this page is kernel glow-ups β¨ (plus modules and firmware, obvi).
πΈ NAME πΈ
update-kernel β update kernel, modules and firmware. that's it. that's the vibe check. π«Ά
β¨ SYNOPSIS β¨
update-kernel [-a ARCH] [-b BUILDDIR] [-c CACHEDIR] [-C COMPRESSION] [-d
KEYSDIR] [-e FIRMWARE] [-f FLAVOR] [-F FEATURE] [-h] [-k PUBKEY] [-K]
[-M] [-p PACKAGE] [-s] [-v] [DESTDIR]
π DESCRIPTION π
So update-kernel installs or updates the kernel, the kernel modules, and the firmware in a destination directory for an Alpine installation. no cap. it's got two whole modes and it ate: you can download pre-built kernels by flavor, or install custom-built kernels straight from a build directory. both iconic. π
Here's the literal lore of what the script does, step by step:
- it creates a
modloopsquashfs image containing modules and firmware, - it builds an initramfs,
- and then it copies the kernel image,
System.map, and config over to the destination.
On systems where the modloop is mounted, the destination is auto-detected from the modloop mount. and if you run it with zero arguments? it just updates the current running kernel. main character behaviour, honestly. π§
π₯ OPTIONS π₯
-a,--arch ARCHβ target architecture (e.g.x86_64,aarch64). pick your fighter. πͺ-b,--build-dir DIRβ install a custom-built kernel from DIR. heads up bestie: mutually exclusive with-f. π«-c,--cache-dir DIRβ override the apk cache directory. default:/etc/apk/cache.-C,--compressionβ initramfs compression method (seemkinitfs). squeeze it, babes. ποΈ-d,--keys-dir DIRβ override the trusted apk keys directory.-e,--modloopfw FIRMWAREβ install extra firmware file in the modloop, in addition to firmware detected bymodinfo. the more the merrier fr fr.-f,--flavor FLAVORβ install kernel of specified flavor (e.g.virt,lts). mutually exclusive with-b, no exceptions. π-F,--feature FEATUREβ enable an initfs feature. defaults to features from/etc/mkinitfs/mkinitfs.conf.-h,--helpβ display usage information and exit. the classic.-k,--apk-pubkey FILEβ include the given apk public key in the initramfs. π-K,--hostkeysβ include host keys in the initramfs.-M,--mediaβ boot media directory layout.-p,--package PACKAGEβ additional module or firmware package to install. treat yourself. π-s,--modloopsignβ sign the modloop with the abuild signing key. signature moment. βοΈ-v,--verboseβ verbose output. she talks a LOT and we love that.--repositories-file FILEβ override the apk repositories file. default:/etc/apk/repositories.
π ENVIRONMENT π
TMPDIRβ point to a storage-backed directory on low-memory systems. yes this is a real tip and not me guessing, it's literally what the page says. π«‘
β EXIT STATUS β
0β success. we slayed. πnon-zeroβ an error occurred. π it happens.
π¦ SEE ALSO π¦
mkinitfs(8), mksquashfs(1), apk(8), setup-bootable(8), setup-alpine(8)
go read those next, iykyk π
π AUTHORS π
Timo Teras, Kaarle Ritvanen, Natanael Copa, and others. legends only. π
β¨ mwah β¨ that's the whole page bestie β brought to you by Alpine Linux, dated 2026-06-09, and this rewrite of UPDATE-KERNEL(8) was a whole moment. go update that kernel, queen. πΈπ
π
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms