systemd-stage-1: Revert assertions about initrd commands
This commit is contained in:
parent
f9391cf538
commit
e56084d2a0
1 changed files with 0 additions and 19 deletions
|
@ -338,25 +338,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (config.boot.initrd.enable && cfg.enable) {
|
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; };
|
system.build = { inherit initialRamdisk; };
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
|
|
Loading…
Reference in a new issue