By following instructionf from here https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls#Running_a_truly_automatic_autoinstall When I use for storage:
storage:
layout:
name: lvm
It creates root parttition with 4GB and doesn't create swap. When I use direct layout
storage:
layout:
name: direct
It creates root partition with full space available on disk and also creates swap. Is there any way to see how it is configured layout direct and modify that configuration to adjust my needs? I mean with action based config like is documented here: https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference#storage
I mean something like following:
storage:
grub:
install_devices:
- esp-partition
swap:
filename: swap.img
size: 4GB
config:
- type: disk
id: disk0
ptable: gpt
wipe: superblock
grub_device: true
match:
size: largest
- id: esp-partition # create partitions on disk (like sda1)
type: partition
device: disk0
size: 512MB
flag: boot # EFI system partition needs boot flag
- type: partition
id: boot-partition
device: disk0
size: 1GB
- type: partition
device: disk0
id: root-partition
size: -1
- id: esp-partition-fs # format partitions on disk
type: format
volume: esp-partition
fstype: fat32
label: ESP
- id: boot-partition-fs
type: format
fstype: ext4
volume: boot-partition
- id: root-partition-fs
type: format
fstype: ext4
volume: root-partition
- id: esp-partition-fs-mount # mount partitions
type: mount
device: esp-partition-fs
path: /boot/efi
- id: root-partition-fs-mount
type: mount
path: /
device: root-partition-fs
- id: boot-partition-fs-mount
type: mount
path: /boot
device: boot-partition-fs
Above configuration SUCCESS pass FileSystem step but FAIL on initramfs step of cloud-init configuration. Like on screenshot I would like to know storage configuration for direct layout so I can adjust my configuration above, or if someone know to help me how to fix above configuration so step initramfs pass?