Arguements for freshly installed kernel

from what fedora takes arguements for freshly installed kernel? it seems like i broke it with some «tuned params» with grubby


i can fix it with grub-mkconfig but i need to enter this manually after every kernel update

These are provides by the kernel install procedure, specifically by the plugin shell script /usr/lib/kernel/install.d/92-tuned.install. Normally the $tuned_initrd and $tuned_params resolves to empty string, so they don’t do anything.

In short, it is not broken.

sorry for long pause
my system is installed on btrfs
i need rootflag
but after every kernel update i have tuned_params…

It is normal to see $tuned_initrd. tuned is not specific to Fedora, so Fedora get a configuration that works across multiple distros. See discussion at https://github.com/redhat-performance/tuned/issues/704.

hi again, maybe i cant explain myself correctly, english is not my first
my problem is that i need rootflags to boot my system correctly, but after every update new kernel has only “$tuned_pararms … rhgb quiet”

Your English is fine. There is just too much emphasis on the “$tuned_pararms” which is not the problem in itself. The rootflags=subvol=@ looks a bit strange and non-standard.

Do show the contents of the files /etc/default/grub and /etc/kernel/cmdline. And, if you could, copy and paste this as text instead of a screenshot. That would make it easier for us.

1 Like

/etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=“$(sed ‘s, release .*$,g’ /etc/system-release)”
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=“console”
GRUB_CMDLINE_LINUX=“rhgb quiet”
GRUB_DISABLE_RECOVERY=“true”
GRUB_ENABLE_BLSCFG=true

/etc/kernel/cmdline
root=UUID=5f88bfe5-168d-4ff3-96be-7249bc2dc537 $tuned_params $tuned_params $tuned_params $tuned_params rhgb quiet

In your post you have curly quotes instead of straight qotes: versus ". It could be caused by the rich text editor mode, but it would be worth checking.

GRUB_DISTRIBUTOR=“$(sed ‘s, release .*$,g’ /etc/system-release)”

With the right quotes it should look like this, and perhaps it does.

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

Running grub2-mkconfig should fix the /etc/kernel/cmdline`, which in my case looks like

root=UUID=1dce6b58-ec67-4643-b106-9f4781bb5b8d ro rootflags=subvol=root rhgb quiet
1 Like