From 432a697e8e2a721c13d95adb06eaaacc21e0eeba Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Tue, 13 Oct 2015 20:02:56 +0200 Subject: [PATCH] Add boot tools --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 16bd92a..94ebd75 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,11 @@ The only reliable way to do this is by sending an AppleScript command to Finder. osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)' ``` +#### Make Volume OS X Bootable +```bash +bless --folder "/path/to/mounted/volume/System/Library/CoreServices" --bootinfo --bootefi +``` + #### Mount Disk Image ```bash hdiutil attach /path/to/diskimage.dmg @@ -170,6 +175,11 @@ You don't have to use the Disk Utility GUI for this. sudo diskutil repairPermissions / ``` +### Set Boot Volume +```bash +bless --mount "/path/to/mounted/volume" --setBoot +``` + #### Show All Attached Disks and Partitions ```bash diskutil list