This is required for Lima to be unregister the qemu binfmt handler and register rosetta instead.
lima-init declares that it needs to run after qemu-binfmt. Maybe patching qemu-binfmt to run before cloud-init and before lima-init will work.
Note that aed9360 can be reverted if qemu-binfmt is guaranteed to run before cloud-init or lima-init because it will make sure the binfmt filesystem is mounted.