autoinstall storage for both efi and non-efi

Jerry Geis jerry.geis at gmail.com
Fri Feb 12 15:05:10 UTC 2021


ok - After many tries I finally found the storage section that works when
converting an old non-efi to ubuntu 20.04

  storage:
    config:
    - {ptable: msdos, wipe: superblock-recursive, preserve: false, name:
'', grub_device: true, type: disk, id: disk-0}
    - {device: disk-0, size: -1,   wipe: superblock, flag: '', number: 1,
preserve: false, grub_device: false, type: partition, id: partition-1}
    - {fstype: ext4, volume: partition-1, preserve: false, type: format,
id: format-1}
    - {device: format-1, path: /,     type: mount, id: mount-1}


This storage did not work - as after install the system would not boot.
  storage:
    layout:
      name: direct

So the question is - how do I have 1 autoinstall file that supports both of
these types?

is there a way to have "conditionals" for the lines in the storage ? Some
how in early commands detect which type I have - and then in storage have
the conditions ?

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210212/8ea6251b/attachment.html>


More information about the ubuntu-users mailing list