BITespresso / createinstalliso

Creates a bootable ISO image from a macOS installer application. This image can then be used to install macOS on a physical or virtual machine.
GNU General Public License v3.0
82 stars 8 forks source link

"The bless of the installer disk image failed." For Mavericks installer #7

Closed mihirpotnis closed 6 hours ago

mihirpotnis commented 10 months ago

So when I run "sudo ~/bin/createinstalliso --isodirectory ~/Desktop/ --applicationpath ~/Desktop/Install\ OS\ X\ Mavericks.app/", I get:

Making disk image bootable... The bless of the installer disk image failed.

I tried "codesign --remove-signature ~/bin/createInstalliso" and also running through rosetta to no avail.

It probably is the certification error but how do I get past it?

despin commented 10 months ago

I am also trying to debug this particular error for the Mavericks installer.

Modifying the script to output the complete bless command, and executing it outside of the script like this:

bless --folder {random folder given by the script}/InstallDisk/System/Library/CoreServices --file {random folder given by the script}/InstallDisk/System/Library/CoreServices/boot.efi --openfolder {random folder given by the script}/InstallDisk --label Install OS X Mavericks

Outputs the following error: bless: The 'openfolder' is not supported on Apple Silicon devices.

After some digging, apparently this option is not needed for M1 devices. Evidence. So I just removed the option from the script.

Try that. I'm using this script to run Mavericks on UTM, with utmconfigs, but I have this exact issue. Maybe your use case is different and the solution specified earlier might help you.

MrGlitchWasTaken commented 1 month ago

I am also trying to debug this particular error for the Mavericks installer.

Modifying the script to output the complete bless command, and executing it outside of the script like this:

bless --folder {random folder given by the script}/InstallDisk/System/Library/CoreServices --file {random folder given by the script}/InstallDisk/System/Library/CoreServices/boot.efi --openfolder {random folder given by the script}/InstallDisk --label Install OS X Mavericks

Outputs the following error: bless: The 'openfolder' is not supported on Apple Silicon devices.

After some digging, apparently this option is not needed for M1 devices. Evidence. So I just removed the option from the script.

Try that. I'm using this script to run Mavericks on UTM, with utmconfigs, but I have this exact issue. Maybe your use case is different and the solution specified earlier might help you.

any updates?

mihirpotnis commented 1 month ago

So the best way to get past this problem if I remember correctly is to use Mac OS X Lion on UTM, getting the mavericks installer on the virtual machine and running the bless command which will work as expected.

Running Lion on UTM was quite easy if I remember correctly (even snow leopard or leopard will work) and you can get the installer on there using an external usb drive and connecting it to the vm, then transferring your bootable image onto the USB drive again and accessing it on your Mac.

Unlike windows, Apple is quite terrible at backwards compatibility and they simply do not care either so.

MrGlitchWasTaken commented 1 month ago

So the best way to get past this problem if I remember correctly is to use Mac OS X Lion on UTM, getting the mavericks installer on the virtual machine and running the bless command which will work as expected.

Running Lion on UTM was quite easy if I remember correctly (even snow leopard or leopard will work) and you can get the installer on there using an external usb drive and connecting it to the vm, then transferring your bootable image onto the USB drive again and accessing it on your Mac.

Unlike windows, Apple is quite terrible at backwards compatibility and they simply do not care either so.

by the way, do you know a fix for my mavericks iso where terminal says "Install OS X Mavericks.app/ does not appear to be a valid OS installer application."

mihirpotnis commented 1 month ago

It is most likely due to expired certification and/or modern Mac OS actually can't recognize it as a valid Mac OS installer. I am pretty sure using a Mac OS older than the one you're trying to make an image for will fix the issue!

MrGlitchWasTaken commented 1 month ago

It is most likely due to expired certification and/or modern Mac OS actually can't recognize it as a valid Mac OS installer. I am pretty sure using a Mac OS older than the one you're trying to make an image for will fix the issue!

would doing this method work in a VM?

mihirpotnis commented 1 month ago

Yup! You can use UTM to install Lion and use bless in that VM!

MrGlitchWasTaken commented 1 month ago

Yup! You can use UTM to install Lion and use bless in that VM!

i have a tiger vm... would that work?

mihirpotnis commented 1 month ago

Try it? Might be a bit too old but you never know

MrGlitchWasTaken commented 1 month ago

Try it? Might be a bit too old but you never know

im using utm, how would i get the install os x file to the vm and i dont have internet connection for the vm

mihirpotnis commented 1 month ago

you can use an external usb and connect it to the VM to transfer data between the machines

MrGlitchWasTaken commented 1 month ago

you can use an external usb and connect it to the VM to transfer data between the machines

omg that would have been useful to know a long time ago thanks!

MrGlitchWasTaken commented 1 month ago

you can use an external usb and connect it to the VM to transfer data between the machines

do you know how to bypass the error "to download and restore OS X, your computer's eligibility will be verified with apple"

MrGlitchWasTaken commented 1 month ago

im on an OS X 10.7 vm

BITespresso commented 6 hours ago

Solved in v1.1.0