Draft: add examples/debvm-create-grub
In the same style of debvm-create and debvm-run, debvm-create-grub is a thin wrapper around debvm-create and all options given to debvm-create-grub are passed down to debvm-create (except for the --boot, --output and --help options).
In contrast to debvm-create, debvm-create-grub creates a disk image that includes a partition table and bootloader (grub). This has the advantage over debvm-create, that the resulting images
- do not require
debvm-runbut - can be directly used with
qemu-system-*,libvirtorautopkgtest-virt-qemu.
This has the disadvantage over debvm-create that the resulting images
- do not work with
debvm-run - can never be bit-by-bit identical
- only work on platforms for which there is
grub
Example how to create an image for autopkgtest-virt-qemu:
examples/debvm-create-grub --size 2G --output=rootfs.img -- \
--architecture=arm64 \
--include linux-image-generic \
--customize-hook='env AUTOPKGTEST_BUILD_QEMU=1 /usr/share/autopkgtest/setup-commands/setup-testbed "$1"'
Without the --boot option, its default (auto) will select efi for arm*, bios for x86 and ieee1275 for ppc64el.