From d4edab49790331adac8d602c7f7da0ac379ba724 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 5 Apr 2013 22:29:04 -0300 Subject: [PATCH] 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 --- lib/vagrant-lxc/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 8e29e05..7104c2d 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -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}"