From 77229349f4d60df1cb5d1c039b9a7a879060a040 Mon Sep 17 00:00:00 2001 From: Daniel Bengtsson Date: Thu, 30 Jan 2020 08:45:22 +0100 Subject: [PATCH] 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 --- puppet/services/kernel.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/puppet/services/kernel.yaml b/puppet/services/kernel.yaml index b45d253828..7da46800e6 100644 --- a/puppet/services/kernel.yaml +++ b/puppet/services/kernel.yaml @@ -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: