Bug 2021193
Summary: | grubby --update-kernel=ALL --args=... does not set the kernel CLI argument for kernel upgrades | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
Component: | grubby | Assignee: | Bootloader engineering team <bootloader-eng-team> |
Status: | CLOSED DUPLICATE | QA Contact: | Release Test Team <release-test-team-automation> |
Severity: | unspecified | Docs Contact: | |
Priority: | urgent | ||
Version: | 9.0 | CC: | fmartine, jaredz, jpazdziora, mreznik, podvody, pstodulk, rharwood, vpolasek |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-18 16:54:51 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: |
Description
Jan Pazdziora (Red Hat)
2021-11-08 14:20:05 UTC
On s390x with zipl, the problem is also present, except it does not work on RHEL 8 either, and the GRUB_CMDLINE_LINUX mechanism is not used. Filed as bug 2021207. I've filed bug 2021806 to capture the expectation WRT kernel upgrades. Edited the bugzilla title back as the issue is present on ppc64le as well, and I presume on all systems that use GRUB. Not sure if this is related but we are hitting similar problem after in-place upgrade from RHEL 8 to RHEL 9. In our case we run: grubby --update-kernel=/boot/vmlinuz-5.14.0-1.el9.x86_64 --args=selinux=0 (for systems where SELinux was disabled in '/etc/selinux/config') but the update is not reflected. In our case there is a difference that the system has "GRUB_ENABLE_BLSCFG=false" in '/etc/default/grub'. However despite this, grubby seems to be doing the opposite and is updating '/boot/loader/entries/*.conf' only. The grub kernel-install script (https://src.fedoraproject.org/rpms/grub2/blob/rawhide/f/20-grub.install) look at the following paths to add the kernel cmdline to the BLS snippet: /etc/kernel/cmdline /usr/lib/kernel/cmdline /proc/cmdline These paths are documented in the kernel-install man page and is what others bootloaders kernel-install scripts also do (i.e: sd-boot). But these files are never created by neither Anaconda on installation nor grubby on kernel cmdline modifications. A RFE to add support for this to grub2 has already been filed in bug #1931912 and I mentioned in bug #1931912, Comment 6 that grubby also needs to support this. From talking to the team, it sounds like this should essentially be a RHEL 9.0 copy of 1931912. Beyond that, I don't see capacity for further work on this except possibly updating documentation. *** Bug 2021207 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 1969362 *** |