Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tar problems #7

Open
graemenelson opened this issue Jun 2, 2012 · 4 comments
Open

tar problems #7

graemenelson opened this issue Jun 2, 2012 · 4 comments

Comments

@graemenelson
Copy link

First off, thanks for creating this script!

This isn't necessarily an issue with the build script, but with tar on Mac OS X 10.7.4. It seems that it doesn't want to extract the iso that gets downloaded -- it just silently quits even if you supply the verbose flag.

I followed the instructions here to install an updated version of bsdtar using homebrew:

http://forums.macrumors.com/showthread.php?t=1377464

I also had to update the script to use /usr/local/bin/bsdtar instead of tar.

Just in case someone else has the same issue.

@cal
Copy link
Owner

cal commented Jun 6, 2012

Thanks, same issue as #5 - maybe we should put a warning/error in the script in case unpacking the iso fails :)

@dcosson
Copy link

dcosson commented Jun 8, 2012

FWIW, I am having the same problem. Just opened a pull request that will try /usr/local/bin/bsdtar if the tar output was empty.

@stuartc
Copy link

stuartc commented Jun 25, 2012

Thanks for the reference, was banging my head against this.

@forficate
Copy link

Just wasted a good few hours on this problem than saw this in the issue queue.

I think this is down to the way Ubuntu package there iso's having read http://ubuntuforums.org/showthread.php?t=1870261&page=5 .

Before I found this and updated tar via the brew link at http://forums.macrumors.com/showthread.php?t=1377464 from post 1 I managed to get it working with the below hack using info from the ubuntuforums post. Updating tar is far eaiser/simpler...
Run the script, let it download the iso and silently fail.

Delete the build directory.

Open disk utility
Drag the downloaded iso into the left under the the existing mounts
Double click the ubuntu image
disk5s1 should appear grayed out under the image
Run: dd if=/dev/disk5s1 of=/tmp/ubuntu.iso bs=1m

Mount the /tmp/ubuntu.iso by double clicking it in finder
tar -czf vagrant-ubuntu-precise-64/iso/ubuntu-12.04-alternate-amd64.iso -C /Volumes/Ubuntu\ 12.04\ LTS .

Re-run the build script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants