mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 03:26:08 +03:00
nixos/klogd: remove
This module only has an effect for ancient kernel versions we don't support.
This commit is contained in:
parent
1aeeed378a
commit
c099ec6aff
3 changed files with 15 additions and 35 deletions
|
@ -432,6 +432,12 @@
|
||||||
new versions will release.
|
new versions will release.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<literal>security.klogd</literal> was removed. Logging of
|
||||||
|
kernel messages is handled by systemd since Linux 3.5.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<literal>services.kubernetes.addons.dashboard</literal> was
|
<literal>services.kubernetes.addons.dashboard</literal> was
|
||||||
|
|
|
@ -141,6 +141,9 @@ In addition to numerous new and upgraded packages, this release has the followin
|
||||||
org-contrib, refer to the ones in `pkgs.emacsPackages.elpaPackages` and
|
org-contrib, refer to the ones in `pkgs.emacsPackages.elpaPackages` and
|
||||||
`pkgs.emacsPackages.nongnuPackages` where the new versions will release.
|
`pkgs.emacsPackages.nongnuPackages` where the new versions will release.
|
||||||
|
|
||||||
|
- `security.klogd` was removed. Logging of kernel messages is handled
|
||||||
|
by systemd since Linux 3.5.
|
||||||
|
|
||||||
- `services.kubernetes.addons.dashboard` was removed due to it being an outdated version.
|
- `services.kubernetes.addons.dashboard` was removed due to it being an outdated version.
|
||||||
|
|
||||||
- `services.kubernetes.scheduler.{port,address}` now set `--secure-port` and `--bind-address` instead of `--port` and `--address`, since the former have been deprecated and are no longer functional in kubernetes>=1.23. Ensure that you are not relying on the insecure behaviour before upgrading.
|
- `services.kubernetes.scheduler.{port,address}` now set `--secure-port` and `--bind-address` instead of `--port` and `--address`, since the former have been deprecated and are no longer functional in kubernetes>=1.23. Ensure that you are not relying on the insecure behaviour before upgrading.
|
||||||
|
|
|
@ -1,38 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
###### interface
|
imports = [
|
||||||
|
(lib.mkRemovedOptionModule [ "security" "klogd" "enable" ] ''
|
||||||
options = {
|
Logging of kernel messages is now handled by systemd.
|
||||||
|
'')
|
||||||
services.klogd.enable = mkOption {
|
];
|
||||||
type = types.bool;
|
|
||||||
default = versionOlder (getVersion config.boot.kernelPackages.kernel) "3.5";
|
|
||||||
defaultText = literalExpression ''versionOlder (getVersion config.boot.kernelPackages.kernel) "3.5"'';
|
|
||||||
description = ''
|
|
||||||
Whether to enable klogd, the kernel log message processing
|
|
||||||
daemon. Since systemd handles logging of kernel messages on
|
|
||||||
Linux 3.5 and later, this is only useful if you're running an
|
|
||||||
older kernel.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
|
||||||
|
|
||||||
config = mkIf config.services.klogd.enable {
|
|
||||||
systemd.services.klogd = {
|
|
||||||
description = "Kernel Log Daemon";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.sysklogd ];
|
|
||||||
unitConfig.ConditionVirtualization = "!systemd-nspawn";
|
|
||||||
script =
|
|
||||||
"klogd -c 1 -2 -n " +
|
|
||||||
"-k $(dirname $(readlink -f /run/booted-system/kernel))/System.map";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue