summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-12-31 20:58:41 +0200
committerLars Wirzenius <liw@liw.fi>2019-01-13 15:39:43 +0200
commit92f08cce01d7e84ad43fe2633dd8933b0b089384 (patch)
tree8495ea0662096fc8ac08bef2b91667d5213960dd
parent7137dfb51f10321c3735abb219bcb29b02371bf5 (diff)
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.
-rw-r--r--raspi3.yaml9
1 files 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