see original here: https://www.belightsoft.com/products/resources/apfs-bootable-clone-with-command-line
Overview
We'll be cloning /
to a new APFS partition using rsync, then we'll be making the preboot volume and creating
some files inside so boot works. Also using bless and updating system cache to make it bootable via mac itself.
Media formatting, / cloning
- Install a new rsync using brew