From 324cddcb9dfff2f73f1aebd8d6c78fc141dde777 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 11 Nov 2013 20:42:34 -0200 Subject: [PATCH] Bring back @gwillem comment from 2790261e58a8dd84c86f5424103dc3d71fe0cc76 regarding rootfs paths so we know what this "./." is about :) --- lib/vagrant-lxc/driver.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 15a2144..86314bb 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -111,6 +111,10 @@ module Vagrant target_path = "#{Dir.mktmpdir}/rootfs.tar.gz" @logger.info "Compressing '#{rootfs_path}' rootfs to #{target_path}" + # "vagrant package" will copy the existing lxc-template in the new box file + # To keep this function backwards compatible with existing boxes, the path + # included in the tarball needs to have the same amount of path components (2) + # that will be stripped before extraction, hence the './.' cmds = [ "cd #{base_path}", "rm -f rootfs.tar.gz",