Automated provision of full offline installer images as option ? #415
scorpion81
started this conversation in
Ideas, Suggestions, Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@sickcodes
In theory it should be possibly to automate those steps in the Dockerfile. Downloading could be done with gibMacOS script
https://github.com/corpnewt/gibMacOS mentioned here somewhere in the FAQs too.
Disclaimer: I didnt test this myself (yet). This is still on the state of Mac OS X El Capitan.
Note: A fresh install of monterey 12.1 from recovery BaseSystem.dmg takes over an hour, it even displays ~2 hours in the beginning. I wonder whether full offline installers may be better, because a mere download of the file via browser seems faster than via the recovery installer.
Also possibly relevant for this issue #61
Taken from: https://gist.github.com/coolaj86/22d08c4b582779485e0df11c5d84063a#file-bootable-mac-iso-with-linux-md
Task
Convert
mac-os-el-capitan-pkg-to-iso.sh
from usinghdiutil
andasr
to using Linux utilities.See https://gist.github.com/solderjs/22d08c4b582779485e0df11c5d84063a#file-mac-os-el-capitan-pkg-to-iso-sh
Steps
Important: You will need about 30GB of free disk space.
InstallMacOSX.dmg
from Apple (7GB)hfsprogs
,hfsplus
, &hfsutils
xar
dmg2img
andmount
can be used to to mountInstallMacOSX.dmg
xar
can be used to extractInstallMacOSX.pkg
(another 7GB)InstallMacOSX.pkg/InstallESD.dmg
must be mounted to findBaseSystem.dmg
BaseSystem.dmg
must be copied to a larger read/write AFPS file system (another 8GB)Resources
Mount dmg in Linux
Install xar (pkg unzip) in Linux
Method 1
Method 2
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/xar/xar-1.5.2.tar.gz tar -zxvf xar-1.5.2.tar.gz pushd xar-1.5.2 ./configure make -j sudo make install
Method 3:
See mackyle/xar#18
Unpacking .pkg (via xar) in Linux
based on the according script on MacOS... here you can see what needs to be copied where.
But not sure whether the general path structure still is the same by now
Beta Was this translation helpful? Give feedback.
All reactions