summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index cb9735ae04f7..44287f3cf09b 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -280,7 +280,7 @@ let
inherit (config.system.build) earlyMountScript;
- inherit (config.boot.initrd) checkJournalingFS
+ inherit (config.boot.initrd) checkJournalingFS verbose
preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;
resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")
@@ -565,6 +565,23 @@ in
description = "Names of supported filesystem types in the initial ramdisk.";
};
+ boot.initrd.verbose = mkOption {
+ default = true;
+ type = types.bool;
+ description =
+ ''
+ Verbosity of the initrd. Please note that disabling verbosity removes
+ only the mandatory messages generated by the NixOS scripts. For a
+ completely silent boot, you might also want to set the two following
+ configuration options:
+
+ <itemizedlist>
+ <listitem><para><literal>boot.consoleLogLevel = 0;</literal></para></listitem>
+ <listitem><para><literal>boot.kernelParams = [ "quiet" "udev.log_priority=3" ];</literal></para></listitem>
+ </itemizedlist>
+ '';
+ };
+
boot.loader.supportsInitrdSecrets = mkOption
{ internal = true;
default = false;