about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2023-04-22 10:25:16 -0400
committerWill Fancher <elvishjerricco@gmail.com>2023-04-22 10:25:16 -0400
commite56084d2a0ab8f6c2e7b68550842101b8c1fc546 (patch)
tree798c25743533f40e2323f00d13fcf6ab80281593 /nixos
parentf9391cf53863fe026c0461ed13cee3df52a7a93d (diff)
systemd-stage-1: Revert assertions about initrd commands
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/systemd/initrd.nix19
1 files changed, 0 insertions, 19 deletions
diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix
index 6f991b84bbd03..c9c219d0a0a59 100644
--- a/nixos/modules/system/boot/systemd/initrd.nix
+++ b/nixos/modules/system/boot/systemd/initrd.nix
@@ -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 = [