Ubuntu 24.04 Custom Partition table

Problem: Trying to use custom partition table to provision ubuntu 24.04

Expected outcome: System creates custom lvm partitions and build completes

Foreman and Proxy versions: 3.18

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

If I use anything out side of the standard partition table “preseed default autoinstall”, the build fails. I have tried a number of different configurations, but each time it fails. I want to build custom partitions using LVM.

We are using custom partition table with LVM for Ubuntu 24.04 and 26.04 without any problem.
I suggest to double-check the yaml indentation.

storage:
  grub:
    reorder_uefi: false
  config:
  - { type: disk, path: /dev/ROOTDEV, ptable: gpt, wipe: superblock-recursive, preserve: false, name: '', grub_device: false, id: disk-sda }
  - { type: partition, number: 1, device: disk-sda, size: 1G, wipe: superblock, flag: boot, preserve: false, grub_device: true, id: part-efi }
  - { type: format, fstype: fat32, volume: part-efi, preserve: false, id: format-efi }
  - { type: partition, number: 2, device: disk-sda, size: 2G, wipe: superblock, flag: '', preserve: false, grub_device: false, id: part-boot }
  - { type: format, fstype: ext4, volume: part-boot, preserve: false, id: format-boot }
  - { type: partition, number: 3, device: disk-sda, size: -1, wipe: superblock, flag: '', preserve: false, grub_device: false, id: part-vg00 }

  - { type: lvm_volgroup, name: vg00, devices: [ part-vg00 ], preserve: false, id: lvm_vg00 }
  - { type: lvm_partition, name: system, volgroup: lvm_vg00, size: 32G, wipe: superblock, preserve: false, id: lvm_part-root }

..... (many more lines, then) ....

  - { path: /boot/efi, device: format-efi, type: mount, id: mount-efi }
  - { path: /, device: format-root, type: mount, id: mount-root }
  - { path: /boot, device: format-boot, type: mount, id: mount-boot }
.....

and ROOTDEV is the device to use for installation. We use a early_command to select it.

JF

1 Like

The partition is inserted with 2 spaces indentation by the preseed :
<%= indent(2) { @host.diskLayout } %>

1 Like

Thanks for that information. I have tested with that, and it’s worked great so far. Other templates that I have used have been drastically different as far as the layout you provided. Thanks again!

1 Like