mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Fixes issue of vagrant not assigned requested IP address. This was due to the switchover of the network interfaces to ethX format.
This commit is contained in:
parent
66e07f935a
commit
110fcd0eda
@ -117,7 +117,7 @@ module VagrantPlugins
|
||||
def self.match_by_name(machine)
|
||||
match = {}
|
||||
machine.communicate.tap do |comm|
|
||||
comm.sudo("ifconfig -a | grep ^en | cut -f1 -d:") do |_, result|
|
||||
comm.sudo("ifconfig -a | grep '^en\\|^eth' | cut -f1 -d:") do |_, result|
|
||||
result.split("\n").each_with_index do |name, interface|
|
||||
match[interface] = "Name=#{name}"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user