Browse Source

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>
tags/2.1.1
Bogdan Dobrelya 1 year ago
parent
commit
d991c1033f
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      roles/modify-image/tasks/libguestfs.yml

+ 1
- 0
roles/modify-image/tasks/libguestfs.yml View File

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

Loading…
Cancel
Save