I have an Ubuntu installer based on Ubuntu mini.iso which uses preseed. Now with the support for mini.iso, being stopped by Canonical, I'm trying to create an installer based on cloud-init. However, with this, I couldn't see an option equivalent to early_command in preseed, (which helped me do some complicated partitioning via scripting and added some checks)
Is there any such option available with cloud-init?