Ideas for a "break open glass" USB drive

jarednichols
Honored Contributor

So we're thinking how a mobile user would get back into the company if their company-issued laptop were stolen or damaged. We thought a "break open glass" USB thumb drive that would be included with each machine may be a good idea. They'd have this thumb drive with which they could walk into an AppleStore, purchase a machine on their corporate card, plug the USB drive into the Mac and essentially re-image themselves (or with the help desk's assistance.)

Has anyone done this?

I thought that perhaps the easiest way would just be to have a USB thumb drive and set it up as bootable (perhaps with the Netboot image we've already got) and then use Casper Admin to clone the JSS to it. However, then I've got loads of packages that I don't need. Is it possible to pick and choose the packages/scripts/etc that need to go to a USB drive instead of cloning the entire JSS and then pairing it back?

7 REPLIES 7

rtrouton
Release Candidate Programs Tester

Is your corporate JSS available to the outside internet? In that case, it may make sense to use a thin imaging approach here.

  1. Set up a bootable USB drive with three functions:

    A. Download the latest Casper agent from an available webserver (using curl or other means) and a launchdaemon/script combo. The launchdaemon runs the script, which manually triggers the jamf binary to run an "emergency build" policy. Script then deletes both launchdaemon and itself.

    *B. Install the Casper agent, launchdaemon and script on the laptop's boot drive.

    C. Restart the Mac*

  2. Give the USB drive out.

3, When needed, user boots from the USB stick. Agent, launchdaemon and script are installed and the Mac restarts.

  1. LaunchDaemon triggers script. Script triggers jamf binary to run the policy, which then builds the Mac from scratch using thin imaging. Script finishes and deletes self and launchdaemon.

The advantage here is that you'll be able to refresh the agent and policy as needed, but not worry about what version of the USB drive your user has.

jarednichols
Honored Contributor

Interesting approach. However, folks may be in locations where they do not have a fat connection to facilitate the image coming down over the wire. Ideally, I'd like a snapshot of the image on the USB drive that can just be re-installed totally offline.

I think I'm going to opt for a "limp mode" whereby it's a minimal installation of software but it's enough where they can remote back into the office. We have lots of folks who have VDIs and such to get their work done so just setting up the client piece so that they can connect to something else should suffice.

Perhaps I should compile a very thin configuration and then distribute the USB key that will have:
a) bootable OS
b) script to restore the internal hard drive with the compiled image
c) instructions to call the help desk for login information for that newly applied image.

That should be enough for them to log in remotely and limp along.

John_Wetter
Release Candidate Programs Tester

I think that would work Jared and I've thought about that some. Of course the problem is that people are going to keep the USB drive in their bag with the laptop that is now stolen... So you net zero. They'll likely never use that USB drive because of its special setup, so they won't keep it on a keychain or somewhere else that they'd have if the laptop bag disappears at airport security or from the back seat of a car. I ended up back at a "support what you can" approach with a Restore partition for when the OS blows up, or that you'd overnight a USB drive if necessary to do what you're talking about.

One thing we're going to be looking at is having a laptop reboot from imaging and getting the user automatically made and to kick off a CrashPlan restore to bring everything back also.

tlarkin
Honored Contributor

Hey Jared,

I would look at thin imaging solutions. Do you really want your users actually imaging their new Macs (possibly newer untested hardware) over a USB device? I would say a quickadd.PKG to get the JAMF binary on it, then via the postflight script manual trigger policies to download packages over HTTP, bind the client, etc. With HTTP it is resume-able and you can cache, then set an ongoing start up policy to install from cache and make available off line. That way the user can trigger the policy, shut their lid, move about the country, it will still download to cache and then once it is done downloading it will install at that next reboot.

That way you never have to worry about incompatible images, new hardware releases, the end user having to image, and the end user only needs to install a PKG file, and everything else is done for them.

If drive to drive imaging is what you want, 8.5 has some nice, new features for target disk mode imaging. Nick Amundsen did a demo of it last week at JAMF's Everything Managed event. Over thunderbolt and SSD it images pretty darn fast. That would be the slick drive to drive option, in my humble opinion of course. I think the demo video may be on our main site. Nick basically fully imaged a Mac laptop over thunderbolt in under 3 minutes. I do not recall all the specific details of the image, like how big it was, and so forth.

Thanks,
Tom

jarednichols
Honored Contributor

Yeah that was crazy fast!

rockpapergoat
Contributor III

keeping it modular (or "thin") is your best bet here. doing so, you can quickly bring an off the shelf machine into compliance without much trouble. your goal in that scenario is probably best limited to giving them just enough to keep going, then handle any further config when they're back in the office.

jarednichols
Honored Contributor

Yeah that's the model we're going for. Get them into "limp mode" for the time being and then re-image them fully when they're back.