{"id":757,"date":"2011-10-27T13:39:00","date_gmt":"2011-10-27T13:39:00","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=757"},"modified":"2012-11-06T10:47:43","modified_gmt":"2012-11-06T10:47:43","slug":"unlocking-a-hardware-locked-mac-os-x-installer","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=757","title":{"rendered":"Unlocking a hardware locked Mac OS X installer"},"content":{"rendered":"<h1><span class=\"Apple-style-span\" style=\"font-size: 13px; font-weight: normal;\">The process below was done with the DVD included with a MacBook Pro i5 (MacBookPro6,2).<\/span><\/h1>\n<div id=\"parent-fieldname-text\">\n<ol>\n<li>Follow the appropriate steps to create a bootable USB keychain. This is recommended over trying to make a new DVD, however it should work if you rebuild the DVD Image after modifying the appropriate files.<\/li>\n<li>Open a shell and copy the file: OSInstall.mpkg from the USB Keychain to your desktop.\n<pre>PHYS20000:~ deleteme$ cd ~\/Desktop\/\r\nPHYS20000:Desktop deleteme$ mkdir TEMP\r\nPHYS20000:Desktop deleteme$ cd TEMP\/\r\nPHYS20000:TEMP deleteme$ cp \/Volumes\/Mac\\ OS\\ X\\ Install\\ USB\\ Keychain\/System\/Installation\/Packages\/OSInstall.mpkg .<\/pre>\n<\/li>\n<li>Create a new directory and extract the files there.\n<pre>PHYS20000:TEMP deleteme$ mkdir files\r\nPHYS20000:TEMP deleteme$ cd files\r\nPHYS20000:files deleteme$ xar -xf ..\/OSInstall.mpkg<\/pre>\n<\/li>\n<li>Modify the file called\u00a0<strong>Distrubition<\/strong>\u00a0by removing the hardware checks (lines shown below).\n<pre>PHYS20000:files deleteme$ diff Distribution ..\/ORIG\/Distribution \r\n82a83,120\r\n&gt; function hwbeModelCheck() {\r\n&gt; \r\n&gt;     try {\r\n&gt;         var modelProp = system.sysctl('hw.model');\r\n&gt;     } \r\n&gt;     catch(e) {\r\n&gt;         system.log('hwbeInstallCheck threw exception ' + e);\r\n&gt;     }\r\n&gt; \r\n&gt;     var machineCount = hwbeSupportedMachines.length;\r\n&gt; \r\n&gt;     for ( var i = 0; i &amp;lt; machineCount; i++ ) {\r\n&gt;         if ( modelProp == hwbeSupportedMachines[i] ) {\r\n&gt;             return true;\r\n&gt;         }\r\n&gt;     }\r\n&gt;     \r\n&gt;     return false;\r\n&gt; \r\n&gt; }\r\n&gt; \r\n&gt; function hwbeInstallCheck() {\r\n&gt;     if ( !hwbeModelCheck() ) {\r\n&gt;         my.result.message = \" \";\r\n&gt;         my.result.type = 'Fatal';\r\n&gt;         return false;\r\n&gt;     }\r\n&gt; \r\n&gt; \treturn true;\r\n&gt; }\r\n&gt; \r\n&gt; var hwbeSupportedMachines = [\r\n&gt; \t\r\n&gt; \t\t'MacBookPro6,1',\r\n&gt; \t\t'MacBookPro6,2',\r\n&gt; ];\r\n&gt; \r\n&gt;<\/pre>\n<p>For your convenience, the modified\u00a0<a href=\"http:\/\/share-it.gatech.edu\/campus\/departments\/physics\/operations-manual\/automation-and-imaging\/files\/OSInstall.mpkg\">OSInstall.mpkg<\/a>\u00a0file can be downloaded\u00a0<a href=\"http:\/\/share-it.gatech.edu\/campus\/departments\/physics\/operations-manual\/automation-and-imaging\/files\/OSInstall.mpkg\">here<\/a>\u00a0(restricted to authenticated users).<\/li>\n<li>Re-compress the OSInstall.mpkg file using the xar command.\n<pre>PHYS20000:files deleteme$ cd ..\/\r\nPHYS20000:TEMP deleteme$ mv OSInstall.mpkg OSInstall.mpkg.i5MBP\r\nPHYS20000:TEMP deleteme$ xar -cf OSInstall.mpkg FILES\/*<\/pre>\n<\/li>\n<li>Copy modified OSInstall.mpkg file to USB Keychain. If you need the old one, you can still get it from the DVD or the copy we made in step 5.\n<pre>PHYS20000:TEMP deleteme$ cp OSInstall.mpkg \/Volumes\/Mac\\ OS\\ X\\ Install\\ USB\\ Keychain\/System\/Installation\/Packages\/OSInstall.mpkg<\/pre>\n<\/li>\n<\/ol>\n<p>Now you can boot older systems than the MacBookPro with the USB keychain and will be able to\u00a0install\u00a0the OS . The image below shows the\u00a010.6.3 build\u00a010D2063a OS that came with the i5 MBP\u00a0installed on our Mac Mini.<\/p>\n<p>Files are Here<\/p>\n<p><a href=\"https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2011\/10\/Distribution.zip\">Distribution<\/a><\/p>\n<p><a href=\"https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2011\/10\/OSInstall.mpkg_.zip\">OSInstall.mpkg<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The process below was done with the DVD included with a MacBook Pro i5 (MacBookPro6,2). Follow the appropriate steps to create a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-757","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=757"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/757\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}