View Issue Details

IDProjectCategoryView StatusLast Update
0000666AlmaLinux-10Generalpublic2026-08-28 08:52
Reporterquannguyen247 Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSAlmaLinuxOS Version10.2
Summary0000666: DNF allows removal of lvm2 on LVM root installations, causing unbootable initramfs during kernel updates
DescriptionDescription:
On systems installed with the root filesystem on an LVM Logical Volume (e.g. /dev/mapper/almalinux-root), the `lvm2` package is not guarded under `/etc/dnf/protected.d/`.

If `lvm2` is removed (manually or transitively via dependency resolution / autoremove), DNF proceeds without verifying whether the active root filesystem depends on LVM. Once `lvm2` is removed:
1. `/usr/sbin/lvm` and LVM dracut module dependencies are wiped.
2. The next kernel update or `dracut -f --regenerate-all` invocation builds initramfs images without LVM support.
3. Upon reboot, Dracut cannot assemble the volume group and fails to locate the root device (`/dev/mapper/almalinux-root not found`), dropping into the emergency shell and rendering all updated kernels unbootable.

Proposed Solution:
1. Anaconda or base configuration should automatically place a protection entry (e.g. `/etc/dnf/protected.d/lvm2.conf` containing `lvm2`, `lvm2-libs`, `device-mapper`, `device-mapper-libs`) if the root partition is located on an LVM volume.
2. Dracut should emit a fatal error or warning when root in `/etc/fstab` is on `/dev/mapper/*` but `lvm` binaries/modules are absent.

Environment:
- OS: AlmaLinux 10.2 (x86_64)
- Kernel: 6.12.0-211.49.1.el10_2.x86_64
- dnf: dnf-4.20.0-22.el10_2.alma.1.noarch
- dracut: dracut-107-9.el10_2.x86_64
- lvm2: lvm2-2.03.36-2.el10.x86_64
Steps To Reproduce1. Deploy AlmaLinux 10 with root on LVM (/dev/mapper/almalinux-root).
2. Execute `dnf remove lvm2` (DNF completes without error or root storage validation).
3. Perform a kernel update or run `dracut -f --regenerate-all`.
4. Reboot into the newly generated kernel.
5. System fails during initramfs stage with "root not found" and drops to emergency shell.
Additional InformationTested Package Versions:
- dnf: 4.20.0-22.el10_2.alma.1.noarch
- dracut: 107-9.el10_2.x86_64
- lvm2: 2.03.36-2.el10.x86_64
- kernel: 6.12.0-211.49.1.el10_2.x86_64
Tagsboot, dnf, dracut, lvm2
Attached Files
bug_report.jpeg (76,453 bytes)   
bug_report.jpeg (76,453 bytes)   

Activities

Issue History

Date Modified Username Field Change
2026-08-28 08:52 quannguyen247 New Issue
2026-08-28 08:52 quannguyen247 Tag Attached: boot
2026-08-28 08:52 quannguyen247 Tag Attached: dnf
2026-08-28 08:52 quannguyen247 Tag Attached: dracut
2026-08-28 08:52 quannguyen247 Tag Attached: lvm2
2026-08-28 08:52 quannguyen247 File Added: bug_report.jpeg