container's / must be compressed under 'rootfs' dir
This commit is contained in:
parent
8fcb6d2a06
commit
5c53e52ea1
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ module Vagrant
|
|||
Dir.chdir base_path do
|
||||
@logger.info "Compressing '#{rootfs_path}' rootfs to #{target_path}"
|
||||
@sudo_wrapper.run('rm', '-f', 'rootfs.tar.gz')
|
||||
@sudo_wrapper.run('tar', '--numeric-owner', '-czf', target_path, '-C', rootfs_path.to_s, '.')
|
||||
@sudo_wrapper.run('tar', '--numeric-owner', '-czf', target_path, 'rootfs')
|
||||
|
||||
@logger.info "Changing rootfs tarbal owner"
|
||||
@sudo_wrapper.run('chown', "#{ENV['USER']}:#{ENV['USER']}", target_path)
|
||||
|
|
Loading…
Reference in a new issue