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`.
This commit is contained in:
parent
f7adeadf8d
commit
17a3dff77f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue