David Wright composed on 2024-10-25 14:08 (UTC-0500):

> On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:

>> Manual editing of /boot/grub/grub.cfg does not persist. Every kernel 
>> addition or
>> removal causes its regeneration anew based upon the content of 
>> /etc/default/grub
>> and the regeneration script(s), same as running grub-mkconfig.

> FTR, editing the Grub menu itself is, of course, totally ephemeral.
> Type whatever you like, boot from it, and the edits are gone for good.

> But editing /boot/grub/grub.cfg does persist as long as

Therein lies the difference between my word collection and yours - as long as. 
It
persists, but only until some _inevitable_ event occurs, as we both described:

> that particular grub.cfg is not reconfigured with
> grub-mkconfig/update-grub, which is done by kernel upgrades,
> and, of course, the very occasional Grub upgrades.

Just a little editing of my text produces an equivalent result. Change

        does not persist. Every kernel addition or removal…
to
        persists only until kernel addition or removal…

and what I wrote is equivalent to what you wrote.

> I postprocess my grub.cfg files as a matter of routine, mainly
> to convert UUIDs to LABELs, but also to uniquify them, if I may
> use that word.

Such postprocess is pointless here. The bulk of my custom.cfg entries use 
LABELS.
None use UUIDs. And, grub.cfg entries are ignored, displayed onscreen as 
available
selections only after scrolling past 20-30 or more custom.cfg entries:

> grep uent customAB250-51.cfg
menuentry "memtest86 8.3 EFI" {
menuentry "openSUSE TW defkernel 5 nolog novid" {
menuentry "openSUSE TW defkernel 3 on P07" {
menuentry "memtest86 7.4 EFI" {
menuentry "openSUSE Slowroll defkernel 3 on P19" {
menuentry "openSUSE 15.6 defkernel 3 on P20" {
menuentry "Debian 13 Testing (Trixie) defkernel 3 on P13" {
menuentry "Fedora 41 defkernel 3 on P23" {
menuentry "openSUSE 15.5 defkernel 3 on P11" {
menuentry "Fedora 39 defkernel 3 on P15" {
menuentry "Tubuntu 24 defkernel 3 on P24" {
menuentry "Mageia 9 defkernel 3" {
menuentry "Fedora 40 defkernel 3 on P18" {
menuentry "Neon User defkernel 3 on P25" {
menuentry "Debian 12 Bookworm defkernel 3 on P10" {
menuentry "Tubuntu 22 defkernel 3 on P12" {
menuentry "openSUSE 15.4 defkernel 3 on P16" {
menuentry "Debian 11 Bullseye defkernel 3 on P14" {
menuentry "openSUSE 15.3 defkernel 3 on P08" {
menuentry "openSUSE 15.1 defkernel 3 on P09" {
menuentry "Tubuntu 20 defkernel 5 on P17" {
menuentry "Tubuntu 18 defkernel 5 on P21" {
menuentry "Custom from ESP partition" {
menuentry "Install Buntu via HTTP" {
menuentry "Install Slackware via HTTP" {
menuentry "Install openSUSE TW via HTTP" {
menuentry "Install Mageia from mirrors.us.kernel.org"{
menuentry "Install openSUSE 15.6 via HTTP" {
menuentry "Install Neon via HTTP" {
menuentry "Install Debian via HTTP" {
> grep uent customAB250-51.cfg | wc
     30     221    1339
> wc customAB250-51.cfg
  199   937 10599 customAB250-51.cfg
> ls -gGh customAB250-51.cfg
… 11K Oct 23 17:47 customAB250-51.cfg
>
So, the auto-generateds are rarely observed, much less selected.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to