Merge pull request #9867 from jnahorny/fix-9592-systemd-networkd
Fix issue 9592 when systemd-networkd is used by Debian guest
This commit is contained in:
commit
6f76275f9e
|
@ -109,7 +109,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
remote_path = upload_tmp_file(comm, net_conf.join("\n"))
|
remote_path = upload_tmp_file(comm, net_conf.join("\n"))
|
||||||
dest_path = "#{NETWORKD_DIRECTORY}/99-vagrant.network"
|
dest_path = "#{NETWORKD_DIRECTORY}/50-vagrant.network"
|
||||||
comm.sudo(["mkdir -p #{NETWORKD_DIRECTORY}",
|
comm.sudo(["mkdir -p #{NETWORKD_DIRECTORY}",
|
||||||
"mv -f '#{remote_path}' '#{dest_path}'",
|
"mv -f '#{remote_path}' '#{dest_path}'",
|
||||||
"chown root:root '#{dest_path}'",
|
"chown root:root '#{dest_path}'",
|
||||||
|
|
Loading…
Reference in New Issue