Re: Where(in which file) does the installer(Anaconda) write the grub menu entries (for the user to edit)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux