How to poweroff autoinstall instead of reboot?

I am setting up Ubuntu 20.04 using autoinstall instructions. I have set user-data key to poweroff but it still reboots. Is there a way to power off instead?

My autoinstall user-data:

  version: 1
      name: lvm
    hostname: ubuntu
    realname: Andy Shinn
    username: andy
    password: "$6$fYMv8H0Au02Wfbja$18icZMlOQgVmUDEYPIcHexjsqlRsvHZgYf13p85g/KjpY/Hvzwh4kmxcuMl6ukTTXwTOITMokFVNx7/s5hmiw0"
    install-server: true
    allow-pw: true
      mode: poweroff
      condition: true

This looks like a technical support request; is it?

This site is for the co-ordination of the Ubuntu project(s), and not support. For Ubuntu Support options, please have a look at

I suppose this is a support request but really this is the only place to get support for autoinstall topics currently. I guess we should transition to askubuntu now that focal is out.

Ah we should probably add explicit support for this somehow. In the mean time adding poweroff to late-commands should work. The ‘user-data’ in the autoinstall config applies to the installed system not the installer environment, so it’s not surprising that it didn’t help you here!