From ed61fa75bb183f05d2688a2386ef0dba5108b04c Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Thu, 11 Jun 2015 12:48:01 -0700 Subject: [PATCH] coreos-base/oem-vagrant: strip leading '-' from path --- .../coreos-base/oem-vagrant/files/box/change_host_name.rb | 2 +- .../coreos-base/oem-vagrant/files/box/configure_networks.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/change_host_name.rb b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/change_host_name.rb index dfab7916be..bae625e235 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/change_host_name.rb +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/change_host_name.rb @@ -26,7 +26,7 @@ module VagrantPlugins temp.close path = "/var/tmp/hostname.yml" - path_esc = path.gsub("/", "-") + path_esc = path.gsub("/", "-")[1..-1] comm.upload(temp.path, path) comm.sudo("systemctl start system-cloudinit@#{path_esc}.service") end diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb index 3990500dad..83377103a4 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb @@ -87,7 +87,7 @@ module VagrantPlugins temp.close path = "/var/tmp/networks.yml" - path_esc = path.gsub("/", "-") + path_esc = path.gsub("/", "-")[1..-1] comm.upload(temp.path, path) comm.sudo("systemctl start system-cloudinit@#{path_esc}.service") end