forked from devstructure/ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simpler patch that adds Linux support. See devstructure#2.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stefanfoulis
Owner
|
||
rsync -a "mount/" "$COPY" | ||
hdiutil detach "mount" | ||
hdiutil detach "mount" || sudo umount "mount" && rm -rf "mount" | ||
chmod -R +w "$COPY" | ||
|
||
# Customize the writable copy. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this does not work for me on OSX. both
hdiutil
andmount
are executed.