From 92f08cce01d7e84ad43fe2633dd8933b0b089384 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 31 Dec 2018 20:58:41 +0200 Subject: [PATCH] Fix: make raspi3.yaml work with current vmdb2 Add the kpartx step. It is now mandtory for building an image file. (Not necessary if building on a real drive directly.) Use only one set of tag names: boot-part and root-fs. vmdb2 has changed so that partitions and mount points share the same tag name space: there's no need to have a tag for the partition and for the mount point for that partition, anymore. As part of that, there's no need to specify both the partition tag for the root partition, and then also the tag for the mount point for that partition. ea7b9bc1d3e5de362b5edf12603ee83c708ad1a1 is the commit of vmdb2 that this works with. --- raspi3.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/raspi3.yaml b/raspi3.yaml index 3db9ff3..328fb91 100644 --- a/raspi3.yaml +++ b/raspi3.yaml @@ -18,18 +18,19 @@ steps: device: "{{ output }}" start: 20% end: 100% - part-tag: root-part + part-tag: root-fs + + - kpartx: "{{ output }}" - mkfs: vfat partition: boot-part label: RASPIFIRM - mkfs: ext4 - partition: root-part + partition: root-fs label: RASPIROOT - - mount: root-part - fs-tag: root-fs + - mount: root-fs - mount: boot-part mount-on: root-fs