diff options
author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2018-10-02 17:38:06 +0200 |
---|---|---|
committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2018-10-02 17:38:06 +0200 |
commit | 215c91d79e821834158ed4d69b72c1b39a671fd9 (patch) | |
tree | 0052345fb889fe26d157c0d8d7aa4aa788bff9af /nixos/modules/system/boot/initrd-network.nix | |
parent | 395019b38d841428eb003375d6a30fb2f23d8a92 (diff) | |
download | nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar.gz nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar.bz2 nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar.lz nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar.xz nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.tar.zst nixpkgs-215c91d79e821834158ed4d69b72c1b39a671fd9.zip |
nixos/initrd: improve descriptions
The improved lspci command shows all available ethernet controllers and their kernel modules. Previously, the user had to provide the slot name of a specific device.
Diffstat (limited to 'nixos/modules/system/boot/initrd-network.nix')
-rw-r--r-- | nixos/modules/system/boot/initrd-network.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix index 384ae909b70..1bc3f906add 100644 --- a/nixos/modules/system/boot/initrd-network.nix +++ b/nixos/modules/system/boot/initrd-network.nix @@ -45,7 +45,8 @@ in is acquired using DHCP. You should add the module(s) required for your network card to - boot.initrd.availableKernelModules. lspci -v -s <ethernet controller> + boot.initrd.availableKernelModules. + <literal>lspci -v | grep -iA8 'network\|ethernet'</literal> will tell you which. ''; }; |