linux: Make Unix domain sockets builtin
This hopefully fixes intermittent initrd failures where udevd cannot
create a Unix domain socket:
machine# running udev...
machine# error getting socket: Address family not supported by protocol
machine# error initializing udev control socket
machine# error getting socket: Address family not supported by protocol
The "unix" kernel module is supposed to be loaded automatically, and
clearly that works most of the time, but maybe there is a race
somewhere. In any case, no sane person would run a kernel without Unix
domain sockets, so we may as well make it builtin.
http://hydra.nixos.org/build/30001448
commite4b4e9b9866758d7843cafe941cb7b59132bd673
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateThu 7 Jan 2016, 12:48 (11 years ago)
parent48e66c3
nixos/modules/system/boot/kernel.nix−3
@@ -197,9 +197,6 @@ in
197197 "hid_generic" "hid_lenovo"
198198 "hid_apple" "hid_logitech_dj" "hid_lenovo_tpkbd" "hid_roccat"
199199
200− # Unix domain sockets (needed by udev).
201− "unix"
202−
203200 # Misc. stuff.
204201 "pcips2" "atkbd"
205202
pkgs/os-specific/linux/kernel/common-config.nix+3
@@ -36,6 +36,9 @@ with stdenv.lib;
3636 SCHEDSTATS n
3737 DETECT_HUNG_TASK y
3838
39+ # Unix domain sockets.
40+ UNIX y
41+
3942 # Power management.
4043 ${optionalString (versionOlder version "3.19") ''
4144 PM_RUNTIME y