From 17a3dff77fce151473a3ebcde75afcd7bbaa17fe Mon Sep 17 00:00:00 2001 From: Mattox Beckman Date: Tue, 25 Mar 2014 20:44:42 -0500 Subject: [PATCH] This is a followup to issue #2591. Arch linux will rename its eth0 device unless an empty file is placed in `/etc/udev/rules.d/`. In order for the new rules to take effect, we need call `udevadm control --reload`. --- plugins/guests/arch/cap/configure_networks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/guests/arch/cap/configure_networks.rb b/plugins/guests/arch/cap/configure_networks.rb index f9547da63..bb29f7be1 100644 --- a/plugins/guests/arch/cap/configure_networks.rb +++ b/plugins/guests/arch/cap/configure_networks.rb @@ -21,6 +21,7 @@ module VagrantPlugins machine.communicate.upload(temp.path, "/tmp/vagrant_network") machine.communicate.sudo("ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules") + machine.communicate.sudo("udevadm control --reload") machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/eth#{network[:interface]}") # Only consider nth line of sed's output below. There's always an