diff options
author | Gauvain 'GovanifY' Roussel-Tarbouriech <gauvain@govanify.com> | 2021-01-03 10:09:30 +0100 |
---|---|---|
committer | Gauvain 'GovanifY' Roussel-Tarbouriech <gauvain@govanify.com> | 2021-01-24 07:16:21 +0100 |
commit | bc1b5fdfe09e89dc253f9df5de15347f80dbd13b (patch) | |
tree | a0a7986dbf537da4f357bc343956e9b20f6f90a2 /nixos/modules/system/boot/stage-1.nix | |
parent | 071eb8b265793098468fd321e5c6900eec149910 (diff) | |
download | nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar.gz nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar.bz2 nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar.lz nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar.xz nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.tar.zst nixpkgs-bc1b5fdfe09e89dc253f9df5de15347f80dbd13b.zip |
boot.initrd: add verbose option
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 19 |
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 86bfde6349c..e223c9940da 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}") @@ -560,6 +560,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; |