summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-05-21 15:48:13 +0300
committerLars Wirzenius <liw@liw.fi>2017-05-21 15:48:13 +0300
commitabe6c7787fb93e83ed9957fe8206899e18acf0f5 (patch)
tree59f37707fa0453a68fdd8dfbaa4e4e4b33565803
parent6de82e32e068cd14fac4c960c107c466f201f440 (diff)
downloadvmdb2-abe6c7787fb93e83ed9957fe8206899e18acf0f5.tar.gz
Add: a vmdb spec file for BIOS-booting PCs
-rw-r--r--pc.vmdb37
1 files changed, 37 insertions, 0 deletions
diff --git a/pc.vmdb b/pc.vmdb
new file mode 100644
index 0000000..15e5d26
--- /dev/null
+++ b/pc.vmdb
@@ -0,0 +1,37 @@
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ - mkpart: primary
+ device: "{{ output }}"
+ start: 0%
+ end: 100%
+ part-tag: root-part
+
+ - mkfs: ext4
+ partition: root-part
+
+ - mount: root-part
+ fs-tag: root-fs
+
+ - unpack-rootfs: root-fs
+
+ - debootstrap: stretch
+ mirror: http://http.debian.net/debian
+ target: root-fs
+ unless: rootfs_unpacked
+
+ - apt: linux-image-amd64
+ fs-tag: root-fs
+ unless: rootfs_unpacked
+
+ - cache-rootfs: root-fs
+ unless: rootfs_unpacked
+
+ - grub: bios
+ root-fs: root-fs
+ root-part: root-part
+ device: "{{ output }}"