nixpkgs/nixos/modules/system
Rémy Grünblatt c9e3cc43c7
nixos: fix iproute2 invocations (#263976)
When using iproute2's ip binary, you can omit the dev parameter, e.g. ip link set up eth0 instead of ip link set up dev eth0.

This breaks if for some reason your device is named e.g. he, hel, … because it is interpreted as ip link set up help.

I just encountered this bug using networking.bridges trying to create an interface named he.

I used a grep on nixpkgs to try to find iproute2 invocations using variables without the dev keyword, and found a few, and fixed them by providing the dev keyword.

I merely fixed what I found, but the use of abbreviated commands makes it a bit hard to be sure everything has been found (e.g. ip l set … up instead of ip link set … up).
2023-10-29 18:27:16 +01:00
..
activation Revert "nixos/activation: remove specialfs activationScript" 2023-10-29 20:08:48 +03:00
boot nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
etc nixos/etc: keep directories in derivation name 2023-06-07 00:08:43 +02:00
build.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00