On Tue, 4 Jun 2024 22:15:33 +0200, Patrick Dupre via users wrote:
I guess that when I run grub2-mkconfig there was a UBS key what connected on the usb poer.
I made some progresses, but not enough I mounted the Fedora 40 / and cp -a /mnt/fedrao40/boot/loader/entries/* /boot/loader/entries
cat /boot/loader/entries/dcdc9ed7e87243ec91d6d876cf7c3384-6.8.9-100.fc38.x86_64.conf
Oh no! Messing up the installation isn't helpful. I've assumed you only wanted to analyze the grub.cfg file, since grub2-mkconfig clearly found a Fedora 40 installation. If not via os-prober (you can run that yourself, btw, to verify), then via the 10_linux section.
Anyway,... the exact scenario still isn't clear to me. It's an upgrade of F38 to F40, but why did you want to run grub2-mkconfig yourself?
And you run grub2-mkconfig with F38, but it doesn't create a working config file? What happens to the boot menu afterwards?