diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2021-01-29 11:56:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 11:56:20 -0300 |
commit | 79256619ce6a2ece9535604b4082a9ece202b3c5 (patch) | |
tree | c3b3f5f5b0c5ecb823118b5638910689b332091c /nixos/modules/system/boot/stage-1.nix | |
parent | 54f8b31971cfa54eb183d3a5794521e6ddc96ccd (diff) | |
parent | bc1b5fdfe09e89dc253f9df5de15347f80dbd13b (diff) | |
download | nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar.gz nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar.bz2 nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar.lz nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar.xz nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.tar.zst nixpkgs-79256619ce6a2ece9535604b4082a9ece202b3c5.zip |
Merge pull request #108294 from GovanifY/silent-boot
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 cb9735ae04f..44287f3cf09 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; |