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:
parent
544aa0a088
commit
25289dd82f
|
@ -14,6 +14,14 @@
|
||||||
insertafter: '^# net devices'
|
insertafter: '^# net devices'
|
||||||
notify: mkinitfs
|
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
|
- name: Configure interface names
|
||||||
template:
|
template:
|
||||||
dest: /etc/mactab
|
dest: /etc/mactab
|
||||||
|
|
Loading…
Reference in a new issue