Skip to content

Debian: drop REMAKE_INITRD from the Bookworm and Trixie guides - #643

Merged
gmelikov merged 1 commit into
masterfrom
docs-fix-links-and-ci
Jul 27, 2026
Merged

Debian: drop REMAKE_INITRD from the Bookworm and Trixie guides#643
gmelikov merged 1 commit into
masterfrom
docs-fix-links-and-ci

Conversation

@gmelikov

Copy link
Copy Markdown
Member

The line was added in 417c2a5 for Buster, where dkms 2.6 really did rebuild the initrd itself: read_conf turned REMAKE_INITRD=yes into remake_initrd, and do_install then called make_initrd, which on Debian ran update-initramfs. Without it a kernel upgrade regenerated the initrd before the module had been built against the new kernel, and the system did not come back up.

dkms 3.0 deprecated the variable (dkms-project/dkms#164) and took the initrd code out with it. All that is left of it is one line that prints "Deprecated feature: REMAKE_INITRD" and returns; nothing in dkms 3.x touches an initramfs at all. Bookworm ships 3.0.10 and Trixie ships 3.2.2, so on both the file we tell the reader to write buys them a warning on every dkms run and nothing else.

The ordering it was there to fix is now handled by the kernel hook dkms installs: run-parts walks /etc/kernel/postinst.d in name order, so dkms builds the module before initramfs-tools regenerates the initrd.

Bullseye and Buster keep the line: they ship dkms 2.8.4 and 2.6.1, where it still does its job.

Closes: #534

The line was added in 417c2a5 for Buster, where dkms 2.6 really did
rebuild the initrd itself: read_conf turned REMAKE_INITRD=yes into
remake_initrd, and do_install then called make_initrd, which on Debian
ran update-initramfs. Without it a kernel upgrade regenerated the
initrd before the module had been built against the new kernel, and
the system did not come back up.

dkms 3.0 deprecated the variable (dkms-project/dkms#164) and took the initrd
code out with it. All that is left of it is one line that prints
"Deprecated feature: REMAKE_INITRD" and returns; nothing in dkms 3.x
touches an initramfs at all. Bookworm ships 3.0.10 and Trixie ships
3.2.2, so on both the file we tell the reader to write buys them a
warning on every dkms run and nothing else.

The ordering it was there to fix is now handled by the kernel hook
dkms installs: run-parts walks /etc/kernel/postinst.d in name order,
so dkms builds the module before initramfs-tools regenerates the
initrd.

Bullseye and Buster keep the line: they ship dkms 2.8.4 and 2.6.1,
where it still does its job.

Closes: #534
Signed-off-by: George Melikov <mail@gmelikov.ru>
@gmelikov
gmelikov merged commit 65ed5c8 into master Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debiain Bookworm Root on ZFS Guide: unnecessary REMAKE_INITRD

1 participant