mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Boot] remove loops_per_jiffies option
No longer has any real effect on the kernel boot time
This commit is contained in:
parent
2fed0d81d6
commit
2c11e25f98
1 changed files with 1 additions and 12 deletions
13
boot.nix
13
boot.nix
|
|
@ -171,13 +171,6 @@ in {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
};
|
};
|
||||||
|
|
||||||
loops_per_jiffies = mkOption {
|
|
||||||
description = "Set loops_per_jiffies to given constant, reducing boot-time. A value of 0 means autodetection.";
|
|
||||||
default = 0;
|
|
||||||
example = 4589490;
|
|
||||||
type = types.addCheck types.int (v: v > 500 || v == 0);
|
|
||||||
};
|
|
||||||
|
|
||||||
cmdline = mkOption {
|
cmdline = mkOption {
|
||||||
description = "Kernel params as attributes (instead of list)";
|
description = "Kernel params as attributes (instead of list)";
|
||||||
default = { };
|
default = { };
|
||||||
|
|
@ -213,6 +206,7 @@ in {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
( mkRemovedOptionModule [ "aviallon" "boot" "extraKCflags" ] "Replaced by aviallon.boot.kernel.addOptimizationAttributes attrset" )
|
( mkRemovedOptionModule [ "aviallon" "boot" "extraKCflags" ] "Replaced by aviallon.boot.kernel.addOptimizationAttributes attrset" )
|
||||||
|
( mkRemovedOptionModule [ "aviallon" "boot" "loops_per_jiffies" ] "Actually unused by the kernel" )
|
||||||
];
|
];
|
||||||
|
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
|
|
@ -239,11 +233,6 @@ in {
|
||||||
# Reboot after 5 seconds on panic (prevent system lockup)
|
# Reboot after 5 seconds on panic (prevent system lockup)
|
||||||
"panic" = 5;
|
"panic" = 5;
|
||||||
|
|
||||||
# Sets loops_per_jiffy to given constant, thus avoiding time-consuming boot-time autodetection
|
|
||||||
# https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-parameters.html
|
|
||||||
"lpj" = mkIf (cfg.loops_per_jiffies > 0) cfg.loops_per_jiffies;
|
|
||||||
|
|
||||||
|
|
||||||
# From systemd(1): systemd.show_status
|
# From systemd(1): systemd.show_status
|
||||||
# Takes a boolean argument or the constants error and auto. Can be also specified without an argument, with the same effect as a positive boolean. If enabled, the systemd manager (PID 1) shows
|
# Takes a boolean argument or the constants error and auto. Can be also specified without an argument, with the same effect as a positive boolean. If enabled, the systemd manager (PID 1) shows
|
||||||
# terse service status updates on the console during bootup. With error, only messages about failures are shown, but boot is otherwise quiet. auto behaves like false until there is a significant
|
# terse service status updates on the console during bootup. With error, only messages about failures are shown, but boot is otherwise quiet. auto behaves like false until there is a significant
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue