On Mon, Jan 20, 2020 at 05:54:03PM -0800, Matt Taggart wrote:
> When I use the example yaml config at
> 
> https://vmdb2-manual.liw.fi/#getting-started

Note that in the mean while the manual has changed and uses an msdos
partition table now. The code does have a working example, which gets
tested automatically:
https://gitlab.com/larswirzenius/vmdb2/-/blob/master/uefi.vmdb

> If I change the mklabel step to use msdos instead of gpt then it works.

The following is a working version. You need to use UEFI for grub, and
add an EFI partition. I don't know of a way to use gpt with BIOS
booting, but I may just be ignorant about that.

~~~yaml
steps:
  - mkimg: "{{ output }}"
    size: 4G
  - mklabel: gpt
    device: "{{ output }}"
  - mkpart: primary
    device: "{{ output }}"
    start: 0%
    end: 100M
    tag: efi
  - mkpart: primary
    device: "{{ output }}"
    start: 100M
    end: 100%
    tag: /
  - kpartx: "{{ output }}"
  - mkfs: vfat
    partition: efi
  - mkfs: ext4
    partition: /
  - mount: /
  - debootstrap: buster
    mirror: http://deb.debian.org/debian
    target: /
  - apt: install
    packages:
    - linux-image-amd64
    tag: /
  - fstab: /
  - grub: uefi
    tag: /
    efi: efi
~~~

I hope that helps.

-- 
I want to build worthwhile things that might last. --joeyh

Attachment: signature.asc
Description: PGP signature

Reply via email to