apple-mac-aarch64: add support for os-installer

Installing pmOS (or any distro) on a M-series mac is tricky, each distro on disk has its own ESP, and there are a number of partitions on the disk that should not be touched... so our default technique of pmb install --disk is destructive and "soft bricks" the device.

This adds support for having a custom install/deploy, where if /etc/os-installer/deploy.sh exists then pmbootstrap generates an image, exports it, then calls deploy.sh with the path to the image it created, and does NOT call pmbootstrap install with --disk. deploy.sh comes from device packages that need to implement custom image deployment stuff, when using --disk is not appropriate.

If deploy.sh doesn't exist then the standard install (using --disk) will take place.

TODO

Edited by Clayton Craft

Merge request reports

Loading