move BLK_DEV_INITRD to base.nix

This commit is contained in:
Daniel Barlow 2023-04-10 20:28:18 +01:00
parent fe99abc450
commit 633a4f8003
4 changed files with 7 additions and 21 deletions

View file

@ -154,13 +154,6 @@
CONSOLE_LOGLEVEL_DEFAULT = "8"; CONSOLE_LOGLEVEL_DEFAULT = "8";
CONSOLE_LOGLEVEL_QUIET = "4"; CONSOLE_LOGLEVEL_QUIET = "4";
# "empty" initramfs source should create an initial
# filesystem that has a /dev/console node and not much
# else. Note that pid 1 is started *before* the root
# filesystem is mounted and it expects /dev/console to
# be present already
BLK_DEV_INITRD = "n";
NET = "y"; NET = "y";
NETDEVICES = "y"; NETDEVICES = "y";
ETHERNET = "y"; ETHERNET = "y";

View file

@ -107,13 +107,6 @@
CONSOLE_LOGLEVEL_DEFAULT = "8"; CONSOLE_LOGLEVEL_DEFAULT = "8";
CONSOLE_LOGLEVEL_QUIET = "4"; CONSOLE_LOGLEVEL_QUIET = "4";
# "empty" initramfs source should create an initial
# filesystem that has a /dev/console node and not much
# else. Note that pid 1 is started *before* the root
# filesystem is mounted and it expects /dev/console to
# be present already
BLK_DEV_INITRD = "n";
NET = "y"; NET = "y";
NETDEVICES = "y"; NETDEVICES = "y";
ETHERNET = "y"; ETHERNET = "y";

View file

@ -123,13 +123,6 @@
CONSOLE_LOGLEVEL_DEFAULT = "8"; CONSOLE_LOGLEVEL_DEFAULT = "8";
CONSOLE_LOGLEVEL_QUIET = "4"; CONSOLE_LOGLEVEL_QUIET = "4";
# "empty" initramfs source should create an initial
# filesystem that has a /dev/console node and not much
# else. Note that pid 1 is started *before* the root
# filesystem is mounted and it expects /dev/console to
# be present already
BLK_DEV_INITRD = "n";
MTD = "y"; MTD = "y";
MTD_CMDLINE_PARTS = "y"; MTD_CMDLINE_PARTS = "y";
MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_dev MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_dev

View file

@ -95,6 +95,13 @@ in {
PACKET = "y"; # for ppp, tcpdump ... PACKET = "y"; # for ppp, tcpdump ...
SYSVIPC= "y"; SYSVIPC= "y";
# disabling this option causes the kernel to use an "empty"
# initramfs instead: it has a /dev/console node and not much
# else. Note that pid 1 is started *before* the root
# filesystem is mounted and it expects /dev/console to be
# present already
BLK_DEV_INITRD = lib.mkDefault "n"; # overriden by initramfs module
# s6-linux-init mounts this on /dev # s6-linux-init mounts this on /dev
DEVTMPFS = "y"; DEVTMPFS = "y";
# some or all of these may be fix for "tmpfs: Unknown parameter 'mode'" error # some or all of these may be fix for "tmpfs: Unknown parameter 'mode'" error