From 4eae72adc05633a828b16b8c1e54e6b48404b53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Eikmeyer?= Date: Mon, 22 Jun 2026 11:49:56 +0200 Subject: [PATCH 1/4] guides: kernel: add fedora instructions and further clarification about dependencies and building initramfs --- docs/guides/kernel.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guides/kernel.md b/docs/guides/kernel.md index 36d966c4..986d7c0a 100644 --- a/docs/guides/kernel.md +++ b/docs/guides/kernel.md @@ -10,6 +10,7 @@ If your distro is not one of the distros with documentation on this Wiki, you ma - Arch based systems: `sudo pacman --needed -S bc kmod libelf pahole cpio perl tar xz git` - Debian based systems: `sudo apt install autoconf bc bison build-essential cpio curl debhelper dkms dwarves fakeroot flex gawk git kernel-wedge libcap-dev libelf-dev libiberty-dev libncurses-dev libpci-dev libssl-dev libudev-dev openssl python3 rsync wget xz-utils zstd` + - Fedora based systems: run `sudo dnf builddep kernel` - For other distros you will need the equivalent of these, but if you miss something you'll most likely get an error saying what's missing, and you can then install it and re-run `make` to continue where you left off. - You will need about 20GB of disk space to compile the kernel. If you have a large amount of RAM, you could use tmpfs to store build files in RAM. @@ -49,7 +50,7 @@ Extract the current kernel configuration: zcat /proc/config.gz > .config ``` -2. For **Debian and Ubuntu**, run: +2. For **Fedora, Debian and Ubuntu**, run: ```bash cp /boot/config-$(uname -r) ./.config @@ -93,7 +94,7 @@ Look at the output from `sudo make install`. If it mentioned creating an initram ### Initramfs/Initrd -Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). As mentioned in the previous step, this may have been automatically done for you. +Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). On Fedora, Ubuntu and Debian, this is done automatically when `make install` calls `installkernel`. For most arch based systems: From 5bb2e8613e40e2096abf2e17bd9087a83a136289 Mon Sep 17 00:00:00 2001 From: DeQ Date: Sun, 28 Jun 2026 13:17:53 +0200 Subject: [PATCH 2/4] Update kernel.md for clarity on initramfs creation Clarify that the distro script is run after installation. --- docs/guides/kernel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/kernel.md b/docs/guides/kernel.md index 986d7c0a..aaf25226 100644 --- a/docs/guides/kernel.md +++ b/docs/guides/kernel.md @@ -90,11 +90,11 @@ sudo make install If `sudo make install` said "Cannot find LILO.", that's fine. -Look at the output from `sudo make install`. If it mentioned creating an initramfs or an initrd, a script provided by your distro has done the next step for you. The same goes for if it mentions updating grub or systemd-boot or bootloader config. This distro script would be at `/sbin/updatekernel`. +Look at the output from `sudo make install`. If it mentioned creating an initramfs or an initrd, a script provided by your distro has done the next step for you. The same goes for if it mentions updating grub or systemd-boot or bootloader config. This distro script would be at `/sbin/updatekernel` is run. ### Initramfs/Initrd -Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). On Fedora, Ubuntu and Debian, this is done automatically when `make install` calls `installkernel`. +Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). On Fedora, Ubuntu and Debian, this is done automatically when `make install` For most arch based systems: From dcb52712867137c4e617ad446a4b8042f75e7d2f Mon Sep 17 00:00:00 2001 From: DeQ Date: Sun, 28 Jun 2026 13:21:29 +0200 Subject: [PATCH 3/4] Fix wording in kernel guide for initramfs/initrd creation Clarified the instruction for creating initramfs/initrd on Fedora, Ubuntu, and Debian. --- docs/guides/kernel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/kernel.md b/docs/guides/kernel.md index aaf25226..25865e34 100644 --- a/docs/guides/kernel.md +++ b/docs/guides/kernel.md @@ -94,7 +94,7 @@ Look at the output from `sudo make install`. If it mentioned creating an initram ### Initramfs/Initrd -Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). On Fedora, Ubuntu and Debian, this is done automatically when `make install` +Next we must create an initramfs/initrd (Initial RAM Filesystem / Initial RAM Disk). On Fedora, Ubuntu and Debian, this is done automatically when `make install` is run. For most arch based systems: From 1d68a643327bcf719b0ad6524fd3e57e4a514c84 Mon Sep 17 00:00:00 2001 From: Andre Eikmeyer Date: Sun, 28 Jun 2026 14:28:59 +0200 Subject: [PATCH 4/4] remove old man's brain fart --- docs/guides/kernel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/kernel.md b/docs/guides/kernel.md index 25865e34..625a8404 100644 --- a/docs/guides/kernel.md +++ b/docs/guides/kernel.md @@ -90,7 +90,7 @@ sudo make install If `sudo make install` said "Cannot find LILO.", that's fine. -Look at the output from `sudo make install`. If it mentioned creating an initramfs or an initrd, a script provided by your distro has done the next step for you. The same goes for if it mentions updating grub or systemd-boot or bootloader config. This distro script would be at `/sbin/updatekernel` is run. +Look at the output from `sudo make install`. If it mentioned creating an initramfs or an initrd, a script provided by your distro has done the next step for you. The same goes for if it mentions updating grub or systemd-boot or bootloader config. This distro script would be at `/sbin/updatekernel`. ### Initramfs/Initrd