From d991c1033f3a6390720210d682e3c155959bbe71 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Tue, 13 Mar 2018 17:47:15 +0100 Subject: [PATCH] Do not attempt install kernel when chrooted When building images from a container/chroot, do not attempt to install kernels. Use the shared via the common defaults chrooted param to control that behavior. Depends-On: I8cc198bd1081e0c1864228dad6228daa92ac32b7 Related-Bug: #1676373 Change-Id: Ie880a33fbb758240638178c45c43156e80bf4d24 Signed-off-by: Bogdan Dobrelya --- roles/modify-image/tasks/libguestfs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/modify-image/tasks/libguestfs.yml b/roles/modify-image/tasks/libguestfs.yml index 9d5873c60..14d5f4d6a 100644 --- a/roles/modify-image/tasks/libguestfs.yml +++ b/roles/modify-image/tasks/libguestfs.yml @@ -42,6 +42,7 @@ name: "kernel-{{ libguestfs_kernel_override }}" state: present become: true + when: not chrooted|bool - name: Run virt-customize on the provided image shell: >