From 91a41168385d853b0bf8bbd2e0e85877d075120e Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Mon, 15 Jun 2026 13:26:45 -0400 Subject: [PATCH] nixos/luksroot: Clarify preLVM with systemd stage 1 (cherry picked from commit 1bd486a33006cbad04a7fbb65d87fd8b1f013a30) --- nixos/modules/system/boot/luksroot.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/luksroot.nix b/nixos/modules/system/boot/luksroot.nix index 18116432d358..9108f0e6d2a2 100644 --- a/nixos/modules/system/boot/luksroot.nix +++ b/nixos/modules/system/boot/luksroot.nix @@ -1100,7 +1100,9 @@ in } { assertion = config.boot.initrd.systemd.enable -> all (dev: dev.preLVM) (attrValues luks.devices); - message = "boot.initrd.luks.devices..preLVM is not used by systemd stage 1."; + message = '' + boot.initrd.luks.devices..preLVM has no effect with systemd stage 1. It can be safely removed from your configuration, and systemd will discover LVM devices automatically at runtime, whether they come before or after LUKS. The preLVM option will be removed in 26.11 along with scripted stage 1. + ''; } { assertion =