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: I8e4c675925cdae292c25a1e86b904fd7f618633f
Closes-bug: #1857493
Co-Authored-By: Keigo Noha <knoha@redhat.com>
This commit is contained in:
Daniel Bengtsson 2020-01-29 15:54:26 +01:00
parent a49fd99690
commit f98b9c51ce
1 changed files with 5 additions and 0 deletions

View File

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