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 <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2018-03-13 17:47:15 +01:00
parent f13fe3e774
commit d991c1033f
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@
name: "kernel-{{ libguestfs_kernel_override }}" name: "kernel-{{ libguestfs_kernel_override }}"
state: present state: present
become: true become: true
when: not chrooted|bool
- name: Run virt-customize on the provided image - name: Run virt-customize on the provided image
shell: > shell: >