test/filesystem: move blueprint writing to function
Move the creation of the blueprint to a function. We'll then add a separate blueprint function for the new, alternative partitioning customization.
This commit is contained in:
parent
49271e614b
commit
4241c1d5a7
1 changed files with 6 additions and 2 deletions
|
|
@ -116,8 +116,9 @@ check_result () {
|
|||
|
||||
greenprint "🚀 Checking custom filesystems (success case)"
|
||||
|
||||
# Write a basic blueprint for our image.
|
||||
tee "$BLUEPRINT_FILE" > /dev/null << EOF
|
||||
write_fs_blueprint() {
|
||||
# Write a basic blueprint for our image.
|
||||
tee "$BLUEPRINT_FILE" > /dev/null << EOF
|
||||
name = "custom-filesystem"
|
||||
description = "A base system with custom mountpoints"
|
||||
version = "0.0.1"
|
||||
|
|
@ -191,6 +192,9 @@ mountpoint = "/foobar"
|
|||
size = 131072000
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
write_fs_blueprint
|
||||
|
||||
build_image "$BLUEPRINT_FILE" custom-filesystem qcow2 false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue