Skip to content

Commit

Permalink
Simpler patch that adds Linux support. See devstructure#2.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Jun 20, 2011
1 parent 14e4fec commit d9e05c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-iso
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ ISO="$NICKNAME-ubuntu-$VERSION-$DISTRO-$ARCH.iso"

# Make a writable copy of the original ISO. This uses the `hdiutil`
# command that is specific to Mac OS X.
hdiutil attach -mountpoint "mount" "$ORIG"
hdiutil attach -mountpoint "mount" "$ORIG" \
|| mkdir "mount" && sudo mount -o loop "$ORIG" "mount"

This comment has been minimized.

Copy link
@stefanfoulis

stefanfoulis Sep 18, 2011

Owner

this does not work for me on OSX. both hdiutil and mount are executed.

This comment has been minimized.

Copy link
@stefanfoulis

stefanfoulis Sep 18, 2011

Owner

@devstructure: @g-k's fix (g-k@2adb3803da53720cbf863ee3cda5a88043efc653) worked for me on OSX. I've not tested it on Linux though.

This comment has been minimized.

Copy link
@rcrowley

rcrowley Sep 22, 2011

Author

Fixed even more properly by 6eec457. Thanks!

This comment has been minimized.

Copy link
@rcrowley

rcrowley Sep 22, 2011

Author

That should be devstructure/ubuntu@6eec457.

rsync -a "mount/" "$COPY"
hdiutil detach "mount"
hdiutil detach "mount" || sudo umount "mount" && rm -rf "mount"
chmod -R +w "$COPY"

# Customize the writable copy.
Expand Down
1 change: 1 addition & 0 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

# SSH key to be authorized in virtual machines.
: ${PRIVATE_KEY:="vagrant"}
chmod 600 "$PRIVATE_KEY"
: ${PUBLIC_KEY:="vagrant.pub"}

# SSH command that will connect to the virtual machine. Add commands
Expand Down

0 comments on commit d9e05c1

Please sign in to comment.