From 25289dd82f60d14d060b7529218008c386657d3f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 30 Jan 2024 12:48:10 +0100 Subject: [PATCH] firewall: fix interface renaming The mdev rules for renaming interfaces at boot seem to not work with latest Alpine. So rename with ifupdown instead. --- roles/firewall/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml index 6bf28c2..df83109 100644 --- a/roles/firewall/tasks/main.yml +++ b/roles/firewall/tasks/main.yml @@ -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