nixpkgs/nixos/modules/system/boot
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
..
loader Revert "nixos/systemd-boot: Avoid remote mypy executions" 2023-10-23 03:38:13 +02:00
systemd Merge pull request #262731 from Lassulus/tmpfiles 2023-10-26 09:29:46 +01:00
binfmt.nix nixos/binfmt: replace activationScript via tmpfiles 2023-10-25 23:44:01 +02:00
emergency-mode.nix
grow-partition.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
initrd-network.nix nixos: fix iproute2 invocations (#263976) 2023-10-29 18:27:16 +01:00
initrd-openvpn.nix systemd-initrd: OpenVPN 2023-04-17 16:41:35 -04:00
initrd-ssh.nix systemd-stage-1: Support for user shells 2023-10-21 13:24:16 -04:00
kernel.nix nixos/boot/kernel: include nvme kmod by default 2023-09-10 15:39:54 +02:00
kernel_config.nix treewide: use optionalString instead of 'then ""' 2023-06-24 20:19:19 +02:00
kexec.nix
luksroot.nix luksroot: fix issue when yubikey is detached during boot process 2023-09-18 23:10:06 -03:00
modprobe.nix
networkd.nix nixos/networkd: fix typoed hairpin option name 2023-10-26 10:26:04 -07:00
pbkdf2-sha512.c
plymouth.nix nixos/plymouth: fix minor doc rendering issue 2023-07-09 02:31:05 -04:00
resolved.nix nixos/modules/system/resolved: disable DNSSEC validation by default 2023-09-13 11:49:16 +02:00
shutdown.nix
stage-1-init.sh Merge pull request #234223 from alyssais/stage-1-bind-file 2023-06-22 21:47:30 +02:00
stage-1.nix Revert "nixos/boot/rasbperrypi: add support for boot.initrd.secret with uboot (#240358)" (#257251) 2023-09-25 14:22:51 +02:00
stage-2-init.sh nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink 2023-09-09 07:22:05 +03:00
stage-2.nix
stratisroot.nix minor refactoring 2023-05-19 10:22:45 -04:00
systemd.nix systemd: rename required AUTOFS4_FS to AUTOFS_FS 2023-10-20 01:44:13 +02:00
timesyncd.nix nixos/timesyncd: replace activationScript via ExecPreStart 2023-10-25 00:48:35 +02:00
tmp.nix nixos/tmp: add a note to useTmpfs on potential issues 2023-03-20 17:27:06 +01:00
uvesafb.nix