Am Di., 31. Aug. 2021 um 16:28 Uhr schrieb stan via users
<users@lists.fedoraproject.org>:

> If you are using UEFI, on F33 it should still be in
> /boot/efi/EFI/fedora/grub.cfg

Yes, this file exists BUT in every grub2 tutorial and also in this
file itself at the top it is written that you should not edit this
file directly.

> Both of the above locations are in the documentation you linked above,
> part of the grub2-mkconfig instructions

Yes. I saw that.

> In latest versions of Fedora, this has moved to /boot/grub2/grub.cfg for
> both legacy and UEFI.
>
> I think that by F33, the actual stanzas for each kernel had been moved
> to /boot/loader/entries
>
> The file /etc/default/grub is where default settings for kernel command
> lines are set so that they are used on new kernels.  If you change them
> without changing the existing kernels, you should run
> grub2-mkconfig -o [location of your grub.cfg file] to recreate the boot
> menu with your changed defaults.

No, Sir. These are the only lines in my /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="resume=UUID=583baa2f-645c-4a12-99a1-f595ef664aa5 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

But I want to change the "linux" and "initrd" lines in the grub menu
entry! I do not see any way to change them in /etc/default/grub.
And as I try to make it clear, I cannot see which of the scripts under
/etc/grub.d/ I should change to change these two grub commands.

Where - if I should and must not edit the grub.cfg - can I change
these lines so that I can give the kernel other boot parameters?

> If you install pinfo, you can run pinfo grub2 to see all the gory
> details of grub2.  If you are comfortable with it, you can even use
> info, but I find pinfo a lot more intuitive.

Thanks for your tip.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to