|
| 1 | + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | + <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | + <head> |
| 4 | + <title>How to Create Bootable MacOS Installation ISO</title> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 | + <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script> |
| 7 | + <script type="text/javascript"> |
| 8 | + $(function(){ |
| 9 | + $('textarea').each(function(i,e){ |
| 10 | + theTextarea = $(this); |
| 11 | + theTextarea.height((theTextarea[0].scrollHeight-5) +'px'); |
| 12 | + }); |
| 13 | + |
| 14 | + $('li').each(function(i,e){ |
| 15 | + var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString(); |
| 16 | + $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>'); |
| 17 | + $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />') |
| 18 | + }); |
| 19 | + |
| 20 | + $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){ |
| 21 | + theElement = $(this); |
| 22 | + var lines = theElement.html().split("\n"); |
| 23 | + theElement.empty(); |
| 24 | + for(l=0;l<lines.length;l++){ |
| 25 | + if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){ |
| 26 | + theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '"')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>'); |
| 27 | + } else { |
| 28 | + theElement.append(lines[l]); |
| 29 | + } |
| 30 | + } |
| 31 | + }); |
| 32 | + |
| 33 | + $(document).on('click','input.copy-text',function(){ |
| 34 | + theButton = $(this); |
| 35 | + $('input.copy-text').attr('src','images/clipboard.png'); |
| 36 | + $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps'); |
| 37 | + try { |
| 38 | + if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){ |
| 39 | + $('#'+ theButton.attr('rel')).addClass('copy-animation-ps'); |
| 40 | + } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){ |
| 41 | + $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd'); |
| 42 | + } else { |
| 43 | + $('#'+ theButton.attr('rel')).addClass('copy-animation'); |
| 44 | + } |
| 45 | + navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, '')); |
| 46 | + theButton.attr('src','images/clipboard_active.png'); |
| 47 | + } catch(err) { |
| 48 | + } |
| 49 | + return false; |
| 50 | + }); |
| 51 | + |
| 52 | + $(document).on('click','input.completeBox',function(){ |
| 53 | + theBox = $(this); |
| 54 | + $('#'+ theBox.attr('rel')).addClass('strikethrough'); |
| 55 | + theBox.prop('disabled',true); |
| 56 | + theBox.parent('li').prevAll().each(function(i,e){ |
| 57 | + theLI = $(this); |
| 58 | + if(theLI.find('input[type=checkbox]').not(':checked')){ |
| 59 | + $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough'); |
| 60 | + theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true); |
| 61 | + } |
| 62 | + }); |
| 63 | + }); |
| 64 | + |
| 65 | + if(window.self !== window.top){ |
| 66 | + window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px'); |
| 67 | + } |
| 68 | + }); |
| 69 | + </script> |
| 70 | + <link href="css/steps.css" rel="stylesheet" type="text/css" /> |
| 71 | + </head> |
| 72 | + <body> |
| 73 | + <div id="gridContainer"> |
| 74 | + <div class="topMargin"></div> |
| 75 | + <div id="listName" class="topMargin"> |
| 76 | + <h1>How to Create Bootable MacOS Installation ISO</h1> |
| 77 | + </div> |
| 78 | + <div></div> |
| 79 | + <div id="content"> |
| 80 | + <h2>Things You Will need</h2> |
| 81 | + |
| 82 | +<ul> |
| 83 | + <li>An existing MacOS Device or VM</li> |
| 84 | + <li>30-40 GB of free disk space</li> |
| 85 | +</ul> |
| 86 | + |
| 87 | +<h2>Creating the Bootable .iso</h2> |
| 88 | + |
| 89 | +<ol> |
| 90 | + <li>Download the MacOS install from the Mac App Store<br /> |
| 91 | + <span style="font-size:0.7em;"><em>NOTE: the easiest way to find them is to use a search engine, for example:<br /> |
| 92 | + macos monterey site:apps.apple.com</em></span></li> |
| 93 | + <li>Click the Get button</li> |
| 94 | + <li>Wait for Software Update to find the update</li> |
| 95 | + <li>When prompted, click Download</li> |
| 96 | + <li>Wait for the download to complete</li> |
| 97 | + <li>Once the download completes, quit the installation if its starts</li> |
| 98 | + <li>Start LaunchPad from the dock</li> |
| 99 | + <li>Search terminal > Click Terminal to launch it</li> |
| 100 | + <li>Run the following commands in terminal, altering the MacOS Installer name as needed |
| 101 | + <div class="codeBlock CMD"># create temporary disk image, make sure its larger than the downloaded installer<br /> |
| 102 | + hdiutil create -o /tmp/macOS -size 15000m -volname macOS -layout SPUD -fs HFS+J<br /> |
| 103 | + # mount the temporary disk image<br /> |
| 104 | + hdiutil attach /tmp/macOS.dmg -noverify -mountpoint /Volumes/macOSISO<br /> |
| 105 | + # use createinstallationmedia utility to copy files<br /> |
| 106 | + sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/macOSISO --nointeraction<br /> |
| 107 | + # unmount the temporary disk image, alter the OS name as needed<br /> |
| 108 | + hdiutil detach -force /Volumes/Install\ macOS\ Monterey<br /> |
| 109 | + # convert the disk image to .iso<br /> |
| 110 | + hdiutil convert /tmp/macOS.dmg -format UDTO -o ~/Desktop/macOS.cdr<br /> |
| 111 | + # change the extension from .cdr to .iso<br /> |
| 112 | + mv ~/Desktop/macOS.cdr ~/Desktop/macOS.iso</div> |
| 113 | + </li> |
| 114 | +</ol> |
| 115 | + </div> |
| 116 | + </div> |
| 117 | + </body> |
| 118 | + </html> |
| 119 | + |
0 commit comments