Wow, nicely spotted.
Actually it’s right to say that you edit 40_custom to put in menu entries, I wonder if it’s worth getting:
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
Maybe we find there the source of the lines in grub.cfg?
Editing grub.cfg was the only way to reorganize the entries…and in arch Linux if I install Linux & Linux LTS then it defaults to the LTS one…I wanted to boot the Linux kernel as default…so after rearranging the ‘menuentries’ I had to edit the Linux line & the intel-ucode line with Linux(previously was linux-lts) and now I have
Adv opts for Manjaro
Adv opts for Arch
(And Arch now defaults to Linux kernel…I don’t use the remember previous entry thing)
Are you asking me to read through the thread and translate it to English for you?
None of the solutions involve editing gub.cfg.
All of the solutions avoid that… but grub.cfg would, in fact, be altered in the process.
We lost feedback from the OP, so nobody is actually working through this now - so it looks like we aren’t going to get a detailed account of how they did it… and I don’t have other OS’s installed to do a proper investigation myself.