Bug 2118292 - when installing a custom kernel rhgb quiet are added to kernel argument
Summary: when installing a custom kernel rhgb quiet are added to kernel argument
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2120476 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-15 12:02 UTC by Bruno Goncalves
Modified: 2022-09-01 09:39 UTC (History)
10 users (show)

Fixed In Version: grub2-2.06-52.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-01 09:39:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2022-08-15 12:02:01 UTC
Description of problem:
When installing a custom kernel rhgb quiet are added as extra arguments to kernel options.


Version-Release number of selected component (if applicable):
grub2-common-2.06-46.fc37.noarch
grub2-pc-2.06-46.fc37.x86_64
grub2-pc-modules-2.06-46.fc37.noarch
grub2-tools-2.06-46.fc37.x86_64
grub2-tools-minimal-2.06-46.fc37.x86_64
grubby-8.40-64.fc37.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Download a kernel tarball
wget https://s3.amazonaws.com/arr-cki-prod-trusted-artifacts/trusted-artifacts/603714145/build%20x86_64%20debug/2807738987/artifacts/kernel-mainline.kernel.org-redhat_603714145_x86_64_debug.tar.gz
2.extract it
tar xfh kernel-mainline.kernel.org-redhat_603714145_x86_64_debug.tar.gz -C /
3.install the kernel
kernel-install add 5.19.0 /boot/vmlinuz-5.19.0
grubby --set-default /boot/vmlinuz-5.19.0

Actual results:
options from default Rawhide kernel:
cat /boot/loader/entries/*-5.19.0-65.fc37.x86_64.conf | grep options
options root=/dev/mapper/fedora_kvm--02--guest23-root ro rd.lvm.lv=fedora_kvm-02-guest23/root console=ttyS0,115200

options from custom kernel
cat /boot/loader/entries/*-5.19.0.conf | grep options
options root=/dev/mapper/fedora_kvm--02--guest23-root ro rd.lvm.lv=fedora_kvm-02-guest23/root console=ttyS0,115200 rhgb quiet


Expected results:
custom kernel should have same arguments as Rawhide kernel

Additional info:
the custom kernel got rhgb quiet as additional arguments

Comment 1 Robbie Harwood 2022-08-16 18:32:48 UTC
> Expected results:
> custom kernel should have same arguments as Rawhide kernel

*Why* should it have the same arguments as the rawhide kernel?  I'm not disagreeing with you, but there isn't enough information for me to make it possibly do what you want.

Comment 2 Bruno Goncalves 2022-08-17 11:31:17 UTC
(In reply to Robbie Harwood from comment #1)
> > Expected results:
> > custom kernel should have same arguments as Rawhide kernel
> 
> *Why* should it have the same arguments as the rawhide kernel?  I'm not
> disagreeing with you, but there isn't enough information for me to make it
> possibly do what you want.

It really surprised me that when a installed the new kernel it added additional arguments and not used the same arguments from the kernel I was using.

The `quiet` specifically was undesired to me as when I booted up the new kernel it didn't show the kernel messages that I was expecting to see.

Comment 3 Robbie Harwood 2022-08-17 13:45:22 UTC
Right now, the current kernel's arguments directly becoming the new kernel's arguments is a bug that needs fixed.  What's supposed to happen is that the new kernel's arguments are the default set that's been requested.  I have heuristics for `rhgb quiet` specifically, but maybe I can tune them more.  Let me think about that.

Comment 4 Bruno Goncalves 2022-08-17 15:00:47 UTC
(In reply to Robbie Harwood from comment #3)
> Right now, the current kernel's arguments directly becoming the new kernel's
> arguments is a bug that needs fixed.  What's supposed to happen is that the
> new kernel's arguments are the default set that's been requested.  I have
> heuristics for `rhgb quiet` specifically, but maybe I can tune them more. 
> Let me think about that.

Thanks. btw I think the `rhgb quiet` being added to kernel arguments is something that got changed recently. I don't remember seeing this problem when using Rawhide composes from early August.

Comment 5 Fedora Update System 2022-08-17 17:28:48 UTC
FEDORA-2022-a3480ad0d3 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a3480ad0d3

Comment 6 Fedora Update System 2022-08-18 02:55:45 UTC
FEDORA-2022-a3480ad0d3 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-a3480ad0d3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-a3480ad0d3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-08-19 01:12:41 UTC
FEDORA-2022-a3480ad0d3 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-a3480ad0d3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-a3480ad0d3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Bruno Goncalves 2022-08-19 09:23:09 UTC
thanks it works well on Rawhide:

grubby-8.40-65.fc38.x86_64
grub2-2.06-52.fc38.noarch

Comment 9 Bruno Goncalves 2022-08-19 09:46:02 UTC
also works well on Fedora-36 with

grubby-8.40-66.fc36
grub2-2.06-52.fc36

Comment 10 Fedora Update System 2022-08-23 01:16:01 UTC
FEDORA-2022-a3480ad0d3 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-a3480ad0d3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-a3480ad0d3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Robbie Harwood 2022-08-23 14:03:46 UTC
*** Bug 2120476 has been marked as a duplicate of this bug. ***

Comment 12 Ondrej Mosnacek 2022-08-26 08:55:28 UTC
Migrating my FAS address to omosnacek...

Comment 13 Fedora Update System 2022-09-01 09:39:52 UTC
FEDORA-2022-a3480ad0d3 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.