Bug 2184755
| Summary: | Incorrect boot_id when --add-opts is used (upgrades/rollback) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Bryn M. Reeves <bmr> | |
| Component: | boom-boot | Assignee: | LVM Team <lvm-team> | |
| Status: | VERIFIED --- | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 9.2 | CC: | agk, bmr, cmarthal, dkeefe, jbrassow, mcsontos | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | boom-boot-1.5.1-1.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2184757 (view as bug list) | Environment: | ||
| Last Closed: | 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: | ||||
|
Description
Bryn M. Reeves
2023-04-05 15:56:09 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>
Marking Verified:Tested in the latest rpms. boom-boot-1.5.1-1.el9 BUILT: Wed May 17 03:00:49 PM CEST 2023 Check 8. Verify the correct boot_id when --add-opts is used (bug 2184755) boom create --title "AddOpts Test" --root-lv /dev/snapper/boom_snap --add-opts "optional tags ABC" Created entry with boot_id d90372c: title AddOpts Test machine-id 7b2d82dad70f4ece8f867b6a482308de version 5.14.0-322.el9.x86_64 linux /vmlinuz-5.14.0-322.el9.x86_64 initrd /initramfs-5.14.0-322.el9.x86_64.img options root=/dev/snapper/boom_snap ro rd.lvm.lv=snapper/boom_snap crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_grant--01-swap rd.lvm.lv=rhel_grant-01/swap rhgb quiet optional tags ABC grub_users $grub_users grub_arg --unrestricted grub_class kernel boom delete d90372c |