Fix rootfs compression

* There is no need to adjust the rootfs to include the arch parameter anymore
* Uses tar instead of bsdtar to error output
This commit is contained in:
Fabio Rehm 2013-04-05 22:29:04 -03:00
parent ed552b6af0
commit d4edab4979

View file

@ -92,7 +92,7 @@ module Vagrant
Dir.chdir base_path do
@logger.info "Compressing '#{rootfs_path}' rootfs to #{target_path}"
system "sudo rm -f rootfs.tar.gz && sudo bsdtar -s /#{basename}/rootfs-#{arch}/ --numeric-owner -czf #{target_path} #{basename}/* 2>/dev/null"
system "sudo rm -f rootfs.tar.gz && sudo tar --numeric-owner -czf #{target_path} #{basename}/*"
@logger.info "Changing rootfs tarbal owner"
system "sudo chown #{ENV['USER']}:#{ENV['USER']} #{target_path}"