Delegate cleaning to arch box packagers
This commit is contained in:
parent
10090bf4dc
commit
384fd3ba98
|
@ -16,14 +16,6 @@ module VagrantPlugins
|
||||||
interfaces = result.split("\n")
|
interfaces = result.split("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cleaning of some dirty hacks documented here :
|
|
||||||
# (http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/)
|
|
||||||
machine.communicate.sudo("rm -f
|
|
||||||
/etc/udev/rules.d/*-net-name-slot.rules")
|
|
||||||
machine.communicate.sudo("rm -f
|
|
||||||
/etc/udev/rules.d/*-persistent-net.rules")
|
|
||||||
machine.communicate.sudo("udevadm control --reload")
|
|
||||||
|
|
||||||
networks.each do |network|
|
networks.each do |network|
|
||||||
# We use :device in the template instead of
|
# We use :device in the template instead of
|
||||||
# eth#{network[:interface]} in order to support Predictable
|
# eth#{network[:interface]} in order to support Predictable
|
||||||
|
|
Loading…
Reference in New Issue