summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-04-29 18:59:58 +0300
committerLars Wirzenius <liw@liw.fi>2023-04-29 18:59:58 +0300
commitb2966ff965ce72d4504b7736b75f455a64efe928 (patch)
treeaf89e8d6244d88032dc8fa2a9cb4c590fa9ab635
parent316526a192b5c5c21e7faa3ed326dd43c1d4b9fe (diff)
downloadvmdb2-b2966ff965ce72d4504b7736b75f455a64efe928.tar.gz
add base.vmdb for testing
Sponsored-by: author
-rw-r--r--base.vmdb54
1 files changed, 54 insertions, 0 deletions
diff --git a/base.vmdb b/base.vmdb
new file mode 100644
index 0000000..1e731c6
--- /dev/null
+++ b/base.vmdb
@@ -0,0 +1,54 @@
+# This is a sample vmdb2 input file for testing vmdb2 with a few
+# different configurations. The check-one script will modify this
+# based on its command line options, before building an image.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ # Create an EFI partition. It'll not be used if we install GRUB for
+ # UEFI, but an extra partition doesn't break anything, and the waste
+ # of space doesn't matter for a test image.
+ - 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: /
+
+ - unpack-rootfs: /
+
+ - debootstrap: buster
+ mirror: http://deb.debian.org/debian
+ variant: minbase
+ target: /
+ unless: rootfs_unpacked
+
+ - virtual-filesystems: /
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - fstab: /
+
+ - grub: uefi
+ tag: /
+ efi: efi