Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
+++ This bug was initially created as a clone of Bug #2184755 +++
Description of problem:
The version of boom packages in RHEL8/9 contains a bug in the handling of additional kernel command line options specified with --add-opts. This causes the boot_id of affected boot entries to change unexpectedly preventing boom from removing them with the "boom delete" command.
Version-Release number of selected component (if applicable):
boom-boot-1.3-2.el8.noarch
How reproducible:
100%
Steps to Reproduce:
1. Create a boot entry with multiple options specified with --add-opts:
[root@localhost ~]# boom create --title "AddOpts Test" --root-lv rhel/root --add-opts "a b c"
Created entry with boot_id 52eaf73:
title AddOpts Test
machine-id d7762ea419aa482a865812c7fca37883
version 5.14.0-162.6.1.el9_1.x86_64
linux /vmlinuz-5.14.0-162.6.1.el9_1.x86_64
initrd /initramfs-5.14.0-162.6.1.el9_1.x86_64.img
options root=/dev/rhel/root ro rd.lvm.lv=rhel/root a b c
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel
2. Inspect the boot_id reported by "boom list"
[root@localhost ~]# boom list
BootID Version Name RootDevice
0add455 5.14.0-162.6.1.el9_1.x86_64 Red Hat Enterprise Linux /dev/rhel/root
3. Attempt to delete the entry via either reported boot_id:
[root@localhost ~]# boom delete 52eaf73
No matching entry found.
[root@localhost ~]# boom delete
# boom delete 0add455
Cannot delete read-only boot entry: /boot/loader/entries/d7762ea419aa482a865812c7fca37883-52eaf73-5.14.0-162.6.1.el9_1.x86_64.conf
Actual results:
The entry boot_id reported when the entry is created does not match the value reported when the entry is read back in from disk and it is not possible to delete the entry with "boom delete".
Expected results:
The boot_id remains consistent and the entry can be removed with "boom delete".
Additional info:
Users can work around this problem my manually removing the problem boot entry from /boot/loader/entries with the rm command:
[root@localhost ~]# rm -f /boot/loader/entries/d7762ea419aa482a865812c7fca37883-52eaf73-5.14.0-162.6.1.el9_1.x86_64.conf
--- Additional comment from Bryn M. Reeves on 2023-04-05 15:57:04 UTC ---
Fixed upstream in commit 0bf009c:
commit 0bf009c9be1e679b49743897e589da901618d74f
Author: Bryn M. Reeves <bmr>
Date: Wed Apr 5 14:44:19 2023 +0100
Fix comparisons in BootParams.from_entry().is_add()
The comparison of a parsed option against the OsProfile template
and expanded boot loader variables incorrectly uses a substring
comparison rather than splitting the string on white space and
testing for list membership.
Fix this and add a regression test to command_tests.py.
Resolves: #13
Signed-off-by: Bryn M. Reeves <bmr>