nixpkgs/nixos/modules
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
..
config Merge pull request #262583 from ElvishJerricco/systemd-stage-1-shells 2023-10-29 13:22:47 -04:00
hardware Merge pull request #262135 from Kiskae/nvidia-udev-fix 2023-10-24 13:58:22 -06:00
i18n/input-method
image
installer nixos-generate-config: rewrite stateVersion comment again 2023-10-29 15:02:50 +03:00
misc nixos/version: rewrite stateVersion documentation 2023-10-29 15:02:50 +03:00
profiles nixos/profiles: add image-based-appliance profile 2023-10-28 13:26:39 +02:00
programs Merge pull request #260091 from bendlas/fix-cdemu-service 2023-10-27 14:46:57 +02:00
security Merge pull request #263203 from nikstur/replace-activation 2023-10-28 10:17:15 +02:00
services nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
system nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
tasks nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
testing nixos/test-instrumentation: fix unsetting of defaultGateway 2023-10-07 16:09:11 -04:00
virtualisation nixos/containers: use latest stateVersion as example 2023-10-27 12:56:12 +03:00
module-list.nix Merge pull request #263462 from nikstur/rebuildable-system 2023-10-29 08:02:35 +01:00
rename.nix Revert "ddclient: remove package and module on upstream maintainer request" 2023-10-20 23:49:18 +02:00