Csinálj mentést az entries alatti *.conf-ról, majd alakítsd át ilyen szerkezetűvé:
title Fedora (5.3.0-1.fc31.x86_64) 31 (Thirty One)
version 5.3.0-1.fc31.x86_64
machine-id abcd
linux /abcd/5.3.0-1.fc31.x86_64/linux
initrd /abcd/5.3.0-1.fc31.x86_64/initrd
options $kernelopts
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel
Szerintem ezek után már a megfelelő helyről fogja felszedni a konfigot. A titok szerintem az options paraméterében van.
tr '[:lower:]' '[:upper:]' <<<locsemege
LOCSEMEGE