nixpkgs-suyu/nixos/modules/tasks
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
..
filesystems nixos/fs/vfat: fix inclusion in systemd stage1 2023-10-26 18:44:02 +02:00
auto-upgrade.nix
bcache.nix nixos/bcache: add a boot.bcache.enable kill switch 2023-09-10 14:26:53 +01:00
cpu-freq.nix
encrypted-devices.nix systemd-stage-1: Enable more encrypted installer tests 2023-10-23 17:40:34 -04:00
filesystems.nix nixos/stage-1-systemd: makeFstabEntries: drop rootPrefix parameter 2023-09-27 18:31:56 -04:00
lvm.nix Merge pull request #240600 from lilyinstarlight/fix/luksroot-lvm-default-off 2023-07-05 12:42:45 -04:00
network-interfaces-scripted.nix nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
network-interfaces-systemd.nix nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
network-interfaces.nix systemd domainname service - fix missing domainname binary 2023-10-28 22:30:14 -04:00
powertop.nix
scsi-link-power-management.nix
snapraid.nix
stratis.nix
swraid.nix nixos/swraid: only warn if swraid was explicitly enabled (#255426) 2023-09-16 12:19:19 +02:00
trackpoint.nix
tty-backgrounds-combine.sh