aboutsummaryrefslogtreecommitdiffstats
path: root/templates/boot
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-09-11 16:51:36 -0700
committerKevin Hilman <khilman@baylibre.com>2017-09-11 16:53:51 -0700
commit35e28485453865ae1e8a76e305ee2af4aeb39a6e (patch)
treef77ee4450d3391d01f5493283080617fcb8c1d19 /templates/boot
parent7f48c21aa46ec30d1742ad6fe457c769812e0d4d (diff)
templates: QEMU: use transfer_overlay
Without transfer_overlay, LAVA will use libguestfs to insert the overlay into the rootfs. This will cause problems with rootfs that have security enabled, so use transfer_overlay to load the overlay after the rootfs has been booted. Tested with QEMU devices in lab-baylibre. Change-Id: Ib27e5e862c64e8b302fa486f113fed4fdc6f5e83 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'templates/boot')
-rw-r--r--templates/boot/generic-qemu-tmpfs.jinja23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/boot/generic-qemu-tmpfs.jinja2 b/templates/boot/generic-qemu-tmpfs.jinja2
index 3908c80..d981f46 100644
--- a/templates/boot/generic-qemu-tmpfs.jinja2
+++ b/templates/boot/generic-qemu-tmpfs.jinja2
@@ -3,6 +3,9 @@
{%- block boot %}
{{ super() }}
media: {{ media_type|default("tmpfs") }}
+ transfer_overlay:
+ download_command: wget
+ unpack_command: tar -C / -xvpf
{%- endblock %}
{%- block main %}
{{ super() }}