Ensure libguestfs_kernel_override kernel is installed
https://review.openstack.org/#/c/535293/ assumed that centos7 base kernel 3.10.0-693.el7.x86_64 is always installed in the centos 7.4 vm. But it's not true for some images which are build using DIB(ex: centos7-minimal). This patch ensures libguestfs_kernel_override kernel is installed before running virt-customize command. Change-Id: Ic41b0675153c590ad7daf79a3bc117156f2173f3
This commit is contained in:
parent
6aac21081d
commit
ff0a5c9ac7
@ -37,6 +37,12 @@
|
||||
set_fact: _vc_args="{{ _vc_args }} --root-password password:{{ modify_image_vc_root_password }}"
|
||||
when: modify_image_vc_root_password is defined
|
||||
|
||||
- name: ensure libguestfs_kernel_override kernel is installed
|
||||
yum:
|
||||
name: "kernel-{{ libguestfs_kernel_override }}"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Run virt-customize on the provided image
|
||||
shell: >
|
||||
virt-customize {{ _vc_args }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user