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:
Chris Roberts 2018-06-08 16:08:27 -07:00 committed by GitHub
commit 6f76275f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}'",