firewall: fix interface renaming

The mdev rules for renaming interfaces at boot seem to not work with
latest Alpine. So rename with ifupdown instead.
This commit is contained in:
Timotej Lazar 2024-01-30 12:48:10 +01:00
parent 544aa0a088
commit 25289dd82f

View file

@ -14,6 +14,14 @@
insertafter: '^# net devices'
notify: mkinitfs
- name: Tell ifupdown to also rename network interfaces
copy:
dest: /etc/network/if-pre-up.d/nameif
content: |
#!/bin/sh
nameif -s
mode: 0755
- name: Configure interface names
template:
dest: /etc/mactab