Bug 1812350

Summary: Regenerate initramfs in the right way
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.8CC: rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-infra-1.0.4-6.el8rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1812351 (view as bug list) Environment:
Last Closed: 2020-08-04 14:51:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1812351    
Bug Blocks: 1779977    

Description SATHEESARAN 2020-03-11 05:08:06 UTC
Description of problem:
-----------------------
Current part of the code does 'dracut -vf' twice to regenerate initramfs and that's not the right way to achieve the result.

As per RHEL 8 documentation[1] suggest to regenerate initramfs using the following command:
   # dracut -fv --regenerate-all

[1] - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/security_hardening/index#configuring-manual-enrollment-of-volumes-using-clevis_configuring-automated-unlocking-of-encrypted-volumes-using-policy-based-decryption

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-infra-1.0.4-5.el8rhgs.noarch.rpm 

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Run the playbook to achieve NBDE

Actual results:
---------------
'dracut -fv' is called twice to regenerate initramfs

Expected results:
-----------------
'dracut -fv --regenerate-all' should be used to regenerate initramfs  as per RHEL 8 security hardening document

Comment 2 SATHEESARAN 2020-03-21 09:56:05 UTC
Verified with gluster-ansible-infra-1.0.4-6

initramfs is regenerated in the right way using 'dracut -vf --regenerate-all'

Comment 4 errata-xmlrpc 2020-08-04 14:51:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RHHI for Virtualization 1.8 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:3314