The initramfs contains the script `/init` which is generated from `initramfs-init.in`.
The script first downloads the overlay file if it is on the network. Then it calls the function `unpack_apkovl` which optionally decrypts the overlay file, and then untars it over the rootfs.