Bring back @gwillem comment from 2790261e58 regarding rootfs paths so we know what this "./." is about :)

This commit is contained in:
Fabio Rehm 2013-11-11 20:42:34 -02:00
parent 06d43df632
commit 324cddcb9d

View file

@ -111,6 +111,10 @@ module Vagrant
target_path = "#{Dir.mktmpdir}/rootfs.tar.gz" target_path = "#{Dir.mktmpdir}/rootfs.tar.gz"
@logger.info "Compressing '#{rootfs_path}' rootfs to #{target_path}" @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 = [ cmds = [
"cd #{base_path}", "cd #{base_path}",
"rm -f rootfs.tar.gz", "rm -f rootfs.tar.gz",