Server autoinstall: How to customise storage section?

Solution 1:

First time through I went through manual install. Then you will find /var/log/installer has yaml files that can be used as a template for the actual autoinstall.yaml that you want. This is what I then constructed to replace Debian installer preseed with aoutinstall.

  storage:
    config:
    - grub_device: true
      id: disk-sda
      path: /dev/sda
      ptable: gpt
      type: disk
      wipe: superblock-recursive
    - device: disk-sda
      flag: bios_grub
      id: partition-0
      number: 1
      size: 1048576
      type: partition
    - device: disk-sda
      id: partition-1
      number: 2
      size: -1
      type: partition
      wipe: superblock
    - fstype: ext4
      id: format-0
      type: format
      volume: partition-1
    - device: format-0
      id: mount-0
      path: /
      type: mount