Bring back @gwillem comment from 2790261e58
regarding rootfs paths so we know what this "./." is about :)
This commit is contained in:
parent
06d43df632
commit
324cddcb9d
1 changed files with 4 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue