]> git.proxmox.com Git - pve-docs.git/commit
network: override device names: suggest running update-initramfs master
authorFriedrich Weber <f.weber@proxmox.com>
Tue, 21 May 2024 12:55:18 +0000 (14:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 May 2024 14:01:08 +0000 (16:01 +0200)
commit0563b1e982c504c9f093ef5d9ea68b1c09f54904
treeaaee3bf25591b8b34831a2e93ddaeab5cfd06678
parent188d30f0fe9fba8c3921591f2b6e6c7208a88c04
network: override device names: suggest running update-initramfs

The initramfs-tools hook /usr/share/initramfs-tools/hooks/udev copies
link files from /etc/systemd/network to the initramfs, where they take
effect in early userspace. If the link files in the initramfs diverge
from the link files in the rootfs, this can lead to confusing
behavior, as reported in enterprise support. For instance:

- If an interface matches link files both in the initramfs and the
  rootfs, it will be renamed twice during boot.
- A leftover link file in the initramfs renaming an interface A to a
  new name X may prevent a link file in the rootfs from renaming a
  different interface B to the same name X (it will fail with "File
  exists").

To avoid this confusion, mention the link files are copied to the
initramfs, and suggest updating the initramfs after making changes to
the link files.

Suggested-by: Hannes Laimer <h.laimer@proxmox.com>
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
pve-network.adoc