Merge pull request #227623 from ElvishJerricco/un-assert-initrd-commands

systemd-stage-1: Revert assertions about initrd commands
This commit is contained in:
Florian Klink 2023-04-22 16:59:42 +02:00 committed by GitHub
commit 136f6ccdc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,25 +338,6 @@ in {
};
config = mkIf (config.boot.initrd.enable && cfg.enable) {
assertions = map (name: {
assertion = config.boot.initrd.${name} == "";
message = ''
systemd stage 1 does not support 'boot.initrd.${name}'. Please
convert it to analogous systemd units in 'boot.initrd.systemd'.
Definitions:
${lib.concatMapStringsSep "\n" ({ file, ... }: "- ${file}") options.boot.initrd.${name}.definitionsWithLocations}
'';
}) [
"preFailCommands"
"preDeviceCommands"
"preLVMCommands"
"postDeviceCommands"
"postMountCommands"
"extraUtilsCommands"
"extraUtilsCommandsTest"
];
system.build = { inherit initialRamdisk; };
boot.initrd.availableKernelModules = [