From 35e28485453865ae1e8a76e305ee2af4aeb39a6e Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 11 Sep 2017 16:51:36 -0700 Subject: 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 --- templates/boot/generic-qemu-tmpfs.jinja2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') 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() }} -- cgit 1.2.3-korg