2

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?

1 Answers1

3

When using autoinstall with the "live server" installer (subiquity) there are three options that could replace the preseed early_command setting. If you are creating your own installer (and not using subiquity) then you can ignore the autoinstall option.

These run at different points during an install. Here is a snippet of a cloud-init autoinstall file with all three defined.

#cloud-config
autoinstall:
  early-commands:
    - echo "early-commands" >> /run/my.log
runcmd:
  - echo "runcmd" >> /run/my.log
bootcmd:
  - echo "bootcmd" >> /run/my.log

see also

notes

I tested using Ubuntu 22.04 (subiquity 22.04.2)