summary refs log tree commit diff
path: root/nixos/modules/system/boot/initrd-network.nix
Commit message (Collapse)AuthorAge
* systemd-stage-1: Add assertions for unsupported options.Will Fancher2023-10-30
|
* nixos: fix iproute2 invocations (#263976)Rémy Grünblatt2023-10-29
| | | | | | | | | | | 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).
* systemd-stage-1: Improve udhcpc assertionWill Fancher2023-10-22
|
* nixos/boot/initrd-network: add option to enable udhcpc (#240406)digital2023-07-31
| | | | | In some setups, and especially with sytemd-networkd becoming more widely used, networking.useDHCP is set to false. Despite this, it may be useful to have dhcp in the initramfs.
* systemd-initrd: Flush networkdWill Fancher2023-04-17
|
* nixos/*: automatically convert option docs to MDpennae2022-08-03
| | | | once again using nix-doc-munge (https://github.com/pennae/nix-doc-munge/commit/69d080323ae27c0d8da3967c62b925a9aedb2828)
* nixos/*: normalize link formatpennae2022-08-03
| | | | | | | | | make (almost) all links appear on only a single line, with no unnecessary whitespace, using double quotes for attributes. this lets us automatically convert them to markdown easily. the few remaining links are extremely long link in a gnome module, we'll come back to those at a later date.
* treewide: automatically md-convert option descriptionspennae2022-07-30
| | | | | | | | | | | | | | | | | | | | | | the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
* nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCPMarc 'risson' Schmitt2020-10-19
| | | | Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* initrd-network: fix flushBeforeStage2Julien Moutinho2020-08-02
|
* nixos/initrd-network: always run postCommandsFranz Pletz2020-02-08
| | | | | | As outlined in #71447, postCommands should always be run if networking in initrd is enabled. regardless if the configuration actually succeeded.
* nixos/initrd-network: use ipconfig from klibcFranz Pletz2020-02-08
| | | | | This apparently has features that the version from Arch's mkinitcpio-nfs-utils does not have. Fixes #75314.
* nixos/initrd-network: flush interfaces before stage 2Franz Pletz2020-02-08
| | | | | | | Depending on the network management backend being used, if the interface configuration in stage 1 is not cleared, there might still be some old addresses or routes from stage 1 present in stage 2 after network configuration has finished.
* Merge pull request #47665 from erikarvstedt/initrd-improvementsMatthew Bauer2019-01-06
|\ | | | | Minor initrd improvements
| * nixos/initrd: improve descriptionsErik Arvstedt2018-10-02
| | | | | | | | | | | | 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.
* | Merge pull request #46459 from volth/volth-patch-3Matthew Bauer2018-10-05
|\ \ | |/ |/| nixos/initrd-network: multiple DHCP fixes
| * oopsvolth2018-09-10
| |
| * nixos/initrd-network: multiple fixesvolth2018-09-10
| | | | | | | | | | * acquire DHCP on the interfaces with networking.interface.$name.useDHCP == true or on all interfaces if networking.useDHCP == true (was only only "eth0") * respect "mtu" if it was in DHCP answer (it happens in the wild) * acquire and set up staticroutes (unlike others clients, udhcpc does not do the query by default); this supersedes https://github.com/NixOS/nixpkgs/pull/41829
* | nixos/initrd-network: support hetznervolth2018-06-11
|/
* nixos/initrd-network: add udhcpc.extraArgs option (#36305)Dino Dai Zovi2018-03-05
| | | | | | | | This can be used to fix issues where udhcpc times out before acquiring a lease. For example of these issues, see: https://bugs.alpinelinux.org/issues/3105#note-8 Signed-off-by: Dino A. Dai Zovi <ddz@theta44.org>
* nixos/initrd-network: fix docbook syntaxJörg Thalheim2018-01-22
|
* initrd-network: Document the need for modulesSvein Ove Aas2018-01-21
|
* initrd-network: call postCommands only if network is upNikolay Amiantov2016-02-03
|
* initrd-network module: initialize network before other pre-LVM commandsNikolay Amiantov2016-02-03
| | | | | This is needed to ensure that network will be initialized before LUKS passphrase is asked.
* boot.initrd.network: Support DHCPEelco Dolstra2016-02-02
| | | | This allows us to use it for EC2 instances.
* Split the initrd sshd support into a separate moduleEelco Dolstra2016-02-02
| | | | | Also, drop boot.initrd.postEarlyDeviceCommands since preLVMCommands should work fine.
* nixos/initrd-network: add new moduleNikolay Amiantov2015-10-18