Bug 1943383
Summary: | Mark /lib/dracut/dracut.conf.d/99-vdsm_protect_ifcfg.conf as configuration file to allow customization | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Marcus West <mwest> |
Component: | vdsm | Assignee: | Ales Musil <amusil> |
Status: | CLOSED WONTFIX | QA Contact: | Michael Burman <mburman> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4.4 | CC: | lsurette, mavital, michal.skrivanek, mperina, msobczyk, srevivo, ycui |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-28 05:17:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marcus West
2021-03-25 23:49:40 UTC
The omit_dracutmodules+="ifcfg clevis" has been added in 4.4 as a part of BZ1760262. The solution is suggested in https://access.redhat.com/solutions/3017441 So we probably can't revert the fix from BZ1760262, but we should write a KCS specific for RHV when local storage with luks encryption is used. What do you think? Hi, just to confirm that I understand it right. Marking it as config file in rpm would be sufficient right? That would prevent dnf/rpm to overwrite if the file is changed on every upgrade. Files in '/usr/lib/dracut.conf.d' should not be edited. From 'man dracut.conf': *.conf files are read from /usr/lib/dracut/dracut.conf.d and /etc/dracut.conf.d. Files with the same name in /etc/dracut.conf.d will replace files in /usr/lib/dracut/dracut.conf.d. Please copy the file to '/etc/dracut.conf.d' and strip the contents. I agree with Marcin, this bug should be closed as not a bug. I did some tests locally: 1) Check current initramfs (does not contain clevis and ifcfg modules) [root@localhost ~]# lsinitrd -m /boot/initramfs-$(uname -r).img Image: initramfs-4.18.0-277.el8.x86_64.img: 26M ======================================================================== Early CPIO image ======================================================================== drwxr-xr-x 3 root root 0 Jan 15 04:01 . -rw-r--r-- 1 root root 2 Jan 15 04:01 early_cpio drwxr-xr-x 3 root root 0 Jan 15 04:01 kernel drwxr-xr-x 3 root root 0 Jan 15 04:01 kernel/x86 drwxr-xr-x 2 root root 0 Jan 15 04:01 kernel/x86/microcode -rw-r--r-- 1 root root 101376 Jan 15 04:01 kernel/x86/microcode/GenuineIntel.bin ======================================================================== Version: dracut-049-133.git20210112.el8 dracut modules: bash systemd systemd-initrd nss-softokn rngd i18n drm plymouth prefixdevname dm kernel-modules kernel-modules-extra lvm qemu qemu-net resume rootfs-block terminfo udev-rules biosdevname dracut-systemd usrmount base fs-lib memstrack microcode_ctl-fw_dir_override shutdown ======================================================================== 2) Copy the original config into /etc/dracut.conf.d and remove content so the file in /etc/dracut.conf.d remains empty. 3) Generate new initramfs: dracut --force /boot/initramfs-$(uname -r).img 4) Check the new image [root@localhost ~]# lsinitrd -m initramfs-$(uname -r).img Image: initramfs-4.18.0-277.el8.x86_64.img: 34M ======================================================================== Early CPIO image ======================================================================== drwxr-xr-x 3 root root 0 Jan 15 04:01 . -rw-r--r-- 1 root root 2 Jan 15 04:01 early_cpio drwxr-xr-x 3 root root 0 Jan 15 04:01 kernel drwxr-xr-x 3 root root 0 Jan 15 04:01 kernel/x86 drwxr-xr-x 2 root root 0 Jan 15 04:01 kernel/x86/microcode -rw-r--r-- 1 root root 101376 Jan 15 04:01 kernel/x86/microcode/GenuineIntel.bin ======================================================================== Version: dracut-049-133.git20210112.el8 dracut modules: bash systemd systemd-initrd nss-softokn rngd i18n network-manager network ifcfg <----------------------- drm plymouth clevis <--------------------- clevis-pin-sss clevis-pin-tang clevis-pin-tpm2 prefixdevname crypt dm kernel-modules kernel-modules-extra kernel-network-modules lvm qemu qemu-net resume rootfs-block terminfo udev-rules biosdevname dracut-systemd usrmount base fs-lib memstrack microcode_ctl-fw_dir_override shutdown ======================================================================== Both modules are here, so the proposed solution should work with some extra steps. Closing this bug as WONTFIX, proper solution with steps is in c#12. |