From 610d831a4b819273daf16cdec06b0ba131523ae4 Mon Sep 17 00:00:00 2001 From: Jens Nolte Date: Sat, 17 Apr 2021 23:06:04 +0200 Subject: [PATCH] kernel: Remove CONFIG_BLK_DEV_RAM=y (remove /dev/ram* devices) This option allows to use portions of the system RAM as block devices. It was configured to 'y' (built-in, therefore not unloadable or reconfigurable) and configured 16 4MB RAM disks which, to my knowledge, currently have no purpose in NixOS. Removing the option restores it to it's default value of 'm', which enables it to be loaded at runtime (which is also required to be able to change it's configuration without rebuilding the kernel). --- pkgs/os-specific/linux/kernel/common-config.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 008205f5b151..1e20cf610556 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -715,7 +715,6 @@ let MD = yes; # Device mapper (RAID, LVM, etc.) # Enable initrd support. - BLK_DEV_RAM = yes; BLK_DEV_INITRD = yes; PM_TRACE_RTC = no; # Disable some expensive (?) features.