Merge pull request #240292 from sysvinit/sysvinit/initrd-udev-docs
nixos/manual: rename references to services.udev.initrdRules
This commit is contained in:
commit
bf0b22ff02
@ -37,7 +37,7 @@ even if networkd is disabled.
|
|||||||
Alternatively, we can use a plain old udev rule:
|
Alternatively, we can use a plain old udev rule:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
services.udev.initrdRules = ''
|
boot.initrd.services.udev.rules = ''
|
||||||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
|
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
|
||||||
ATTR{address}=="52:54:00:12:01:01", KERNEL=="eth*", NAME="wan"
|
ATTR{address}=="52:54:00:12:01:01", KERNEL=="eth*", NAME="wan"
|
||||||
'';
|
'';
|
||||||
@ -45,7 +45,7 @@ services.udev.initrdRules = ''
|
|||||||
|
|
||||||
::: {.warning}
|
::: {.warning}
|
||||||
The rule must be installed in the initrd using
|
The rule must be installed in the initrd using
|
||||||
`services.udev.initrdRules`, not the usual `services.udev.extraRules`
|
`boot.initrd.services.udev.rules`, not the usual `services.udev.extraRules`
|
||||||
option. This is to avoid race conditions with other programs controlling
|
option. This is to avoid race conditions with other programs controlling
|
||||||
the interface.
|
the interface.
|
||||||
:::
|
:::
|
||||||
|
Loading…
Reference in New Issue
Block a user