On Windows there is this method exists: you create a backup image of the whole system (for example install all updates, tweak system parameters, harden the os, install some basic software and utilities).
This image comes with
.vhd format, then you can easily convert it to
.wim format and inject (in fact simply copy & paste with replace install.wim file) into Windows Install usb or disk. As the result next time you can quickly install already tweaked ready for work system.
Sorry for the long preamble. So is there a such thing for macOS? I found that
installESD.dmg has the big compressed
5.hfs file. I guess the whole system contains there. But I couldn't open it.
My intention is to clone my macOS into bootable 16GB flash drive, so the clone should be compressed.
Is there a way to make a compressed bootable clone of macOS?