diff options
Diffstat (limited to 'amd64-uefi.vmdb')
-rw-r--r-- | amd64-uefi.vmdb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/amd64-uefi.vmdb b/amd64-uefi.vmdb new file mode 100644 index 0000000..872de16 --- /dev/null +++ b/amd64-uefi.vmdb @@ -0,0 +1,63 @@ +# This is a sample VMDB2 input file that specifies a simple system for +# an amd64 machine that boots with UEFI. + +steps: + - mkimg: "{{ output }}" + size: 4G + + - mklabel: gpt + device: "{{ output }}" + + - mkpart: primary + device: "{{ output }}" + start: 0% + end: 1G + tag: efi + + - mkpart: primary + device: "{{ output }}" + start: 1G + end: 100% + tag: / + + - kpartx: "{{ output }}" + + - mkfs: vfat + partition: efi + + - mkfs: ext4 + partition: / + + - mount: / + + # Using the virtual-filesystems plugin here upsets qemu-debootstrap, + # which ends up unable to create /dev/fd within the chroot, causing + # the qemu-debootstrap phase to fail. Until we get to the bottom + # that, don't enable the plugin. + #- virtual-filesystems: / + + - unpack-rootfs: / + + - qemu-debootstrap: buster + arch: amd64 + mirror: http://deb.debian.org/debian + target: / + unless: rootfs_unpacked + + - apt: install + packages: + - linux-image-amd64 + fs-tag: / + unless: rootfs_unpacked + + - cache-rootfs: / + unless: rootfs_unpacked + + - chroot: / + shell: | + sed -i '/^root:[^:]*:/s//root::/' /etc/passwd + echo amd64-uefi-vmdb2 > /etc/hostname + + - grub: uefi + tag: / + efi: efi |