Remove dracut-config-generic package.

In LP#1830574, we introduce the dracut command to include necessary
file into initramfs. However, dracut in RHEL or CentOS doesn't include
sysctl.conf or other specific module related confs at an installation
of new kernel if dracut-config-generic package exists on the system.

We should remove the package to allow creating a host-specific initramfs
at an installation of new kernel.

Change-Id: Idbb69f4e05681f86933a7b57a506221cf6581536
Closes-bug: #1857493
Co-Authored-By: Keigo Noha <knoha@redhat.com>
This commit is contained in:
Daniel Bengtsson 2020-01-30 08:45:22 +01:00
parent 10338d8e87
commit 77229349f4
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ outputs:
description: Role data for the Kernel modules
value:
service_name: kernel
host_prep_tasks:
- name: Remove dracut-config-generic
package:
name: 'dracut-config-generic'
state: absent
config_settings:
localhost_address:
if: