diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-23 11:53:37 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-23 11:56:09 +0100 |
commit | deae4eff7b837a51699a10e499c3dc7311fd3ef1 (patch) | |
tree | c5f60700f6bf65fc484d8617d630a2d8e31ba1eb /nixos/modules/system/boot/stage-1.nix | |
parent | 6f6e2c430fbe51ccb6b803134236af0d9aa85e55 (diff) | |
download | nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar.gz nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar.bz2 nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar.lz nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar.xz nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.tar.zst nixpkgs-deae4eff7b837a51699a10e499c3dc7311fd3ef1.zip |
Make stage-1/2 logging unconditional, and drop log level to "debug"
Using "debug" level prevents spamming the console with messages twice (once directly and once via kmsg).
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 45652b355c8..f31620df1d8 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -200,8 +200,8 @@ let inherit (config.boot) resumeDevice devSize runSize; - inherit (config.boot.initrd) checkJournalingFS - logCommands preLVMCommands preDeviceCommands postDeviceCommands postMountCommands kernelModules; + inherit (config.boot.initrd) checkJournalingFS + preLVMCommands preDeviceCommands postDeviceCommands postMountCommands kernelModules; resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}") (filter (sd: (sd ? label || hasPrefix "/dev/" sd.device) && !sd.randomEncryption) config.swapDevices); @@ -269,14 +269,6 @@ in ''; }; - boot.initrd.logCommands = mkOption { - default = false; - type = types.bool; - description = '' - Whether to replicate command output of stage-1 booting to <filename>/dev/kmsg</filename> or <filename>/run/log/stage-1-init.log</filename> if <filename>/dev/kmsg</filename> is not writable. - ''; - }; - boot.initrd.prepend = mkOption { default = [ ]; type = types.listOf types.str; |