Skip to content
Permalink
Browse files

Add notes and bits for building a version of Imagr to run in Recovery…

… boot
  • Loading branch information
gregneagle committed Aug 9, 2018
1 parent 0329545 commit 5832e6cfc67b45722e084a711e41d6e81c6b7e7f
@@ -8,6 +8,7 @@ Packages/
AutoNBI.py
FoundationPlist*
Imagr.xcodeproj/project.xcworkspace/xcuserdata/*
Imagr.xcodeproj/project.xcworkspace/xcshareddata/*
*.mk
rc.netboot
*.pyc
@@ -16,3 +17,5 @@ rc-imaging/custom
Imagr/post_test.py
Python.framework

Imagr_for_Recovery/imagr/Imagr.app
Imagr_for_Recovery/imagr.dmg
@@ -0,0 +1,22 @@
How to play

Build Imagr.app with an embedded Python framework. See ../relocatable-python-notes.md for more info. Copy that app into the imagr folder inside this folder.

Edit imagr/com.grahamgilbert.Imagr.plist to point to your Imagr server.

Run ./make_dmg.sh to build a disk image, or copy the contents of the imagr folder to a USB (or other external) drive. Name (or rename) the volume "imagr".

Scenario 1:

Boot a machine into Recovery.
Connect the external drive you prepared above.
Open the Terminal.
Type `/Volumes/imagr/run`

Scenario 2:

Copy the dmg you generated to a web server.
Boot a machine into Recovery.
Open the Terminal.
Type `hdiutil attach <URL_for_the_dmg>`
Type `/Volumes/imagr/run`
No changes.
@@ -0,0 +1,12 @@
#!/bin/bash

# dirname and basename not available in Recovery boot
# so we get to use Bash pattern matching
BASENAME=${0##*/}
THISDIR=${0%$BASENAME}
IMAGR="${THISDIR}Imagr.app/Contents/MacOS/Imagr"

"${IMAGR}"



@@ -0,0 +1,10 @@
#!/bin/sh

# Builds a disk image containing Imagr and config.

THISDIR=$(/usr/bin/dirname ${0})
DMGNAME="${THISDIR}/imagr.dmg"
if [[ -e "${DMGNAME}" ]] ; then
/bin/rm "${DMGNAME}"
fi
/usr/bin/hdiutil create -fs HFS+ -srcfolder "${THISDIR}/imagr" "${DMGNAME}"
No changes.

This file was deleted.

0 comments on commit 5832e6c

Please sign in to comment.
You can’t perform that action at this time.