Grubby fatal error: unable to find a suitable template

Hi,

I was updating my system while i noticed those error messages, multiple times during update.

grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.

This is the output of dnf update -y --best --refresh --allowerasing (as the post is limited to 33k chars, i have to cut out some…)

Copr repo for flat-remix owned by daniruiz      2.2 kB/s | 3.5 kB     00:01    
Copr repo for papirus-icon-theme owned by dirkd 3.2 kB/s | 3.5 kB     00:01    
Copr repo for gtk-themes owned by heikoada      3.1 kB/s | 3.5 kB     00:01    
Copr repo for themes owned by tcg               2.7 kB/s | 3.5 kB     00:01    
Copr repo for Arc owned by user501254           2.9 kB/s | 3.5 kB     00:01    
Copr repo for evopop owned by phnxrbrn          304  B/s | 341  B     00:01    
Échec de la synchronisation du cache pour le dépôt « phnxrbrn-evopop »
Copr repo for Paper owned by user501254         2.5 kB/s | 3.5 kB     00:01    
Atom Editor                                     200  B/s | 833  B     00:04    
bintray--mh-cbon-rpm                            2.1 kB/s | 1.3 kB     00:00    
Docker CE Stable - x86_64                       502  B/s | 577  B     00:01    
Échec de la synchronisation du cache pour le dépôt « docker-ce-stable »
Docker CE Edge - x86_64                         797  B/s | 575  B     00:00    
Échec de la synchronisation du cache pour le dépôt « docker-ce-edge »
Fedora Modular 30 - x86_64                       22 kB/s |  24 kB     00:01    
Fedora Modular 30 - x86_64 - Updates             22 kB/s |  24 kB     00:01    
Fedora Modular 30 - x86_64 - Updates             62 kB/s | 192 kB     00:03    
Fedora 30 - x86_64 - Updates                     21 kB/s |  22 kB     00:01    
Fedora 30 - x86_64                                                                                                          24 kB/s |  24 kB     00:01    
Fedy Repository                                                                                                            5.0 kB/s | 3.5 kB     00:00    
google-chrome                                                                                                              1.9 kB/s | 1.3 kB     00:00    
Horst3180's Home Project (Fedora_25)                                                                                       5.0 kB/s | 1.6 kB     00:00    
Moka Project (Fedora_25)                                                                                                   5.6 kB/s | 1.6 kB     00:00    
keybase                                                                                                                    5.5 kB/s | 3.3 kB     00:00    
RPM Fusion for Fedora 30 - Free - Updates                                                                                  6.6 kB/s |  10 kB     00:01    
RPM Fusion for Fedora 30 - Free                                                                                            8.4 kB/s |  10 kB     00:01    
RPM Fusion for Fedora 30 - Nonfree - Updates                                                                               6.7 kB/s |  10 kB     00:01    
RPM Fusion for Fedora 30 - Nonfree                                                                                         6.3 kB/s |  10 kB     00:01    
skype (stable)                                                                                                             3.6 kB/s | 2.9 kB     00:00    
Dépôts ignorés : phnxrbrn-evopop, docker-ce-stable, docker-ce-edge
Dépendances résolues.
===========================================================================================================================================================
 Paquet                                               Architecture     Version                                         Dépôt                         Taille
===========================================================================================================================================================
Installation:
 kernel                                               x86_64           5.1.6-300.fc30                                  updates                        13 k
 kernel-core                                          x86_64           5.1.6-300.fc30                                  updates                        26 M
 kernel-devel                                         x86_64           5.1.6-300.fc30                                  updates                        13 M
 kernel-modules                                       x86_64           5.1.6-300.fc30                                  updates                        28 M
 kernel-modules-extra                                 x86_64           5.1.6-300.fc30                                  updates                       2.1 M
Mise à jour:
 flat-remix                                           noarch           20190603-1                                      daniruiz-flat-remix            43 M
 paper-icon-theme                                     noarch           1:1.4.0-4.201808151815git8c7bf8d.fc29           heikoada-gtk-themes            68 M
 arc-theme                                            noarch           1488477732.766ae1a-71.2.fc28                    user501254-Arc                551 k
 autocorr-en                                          noarch           1:6.2.4.2-1.fc30                                updates                       151 k
 autocorr-fr                                          noarch           1:6.2.4.2-1.fc30                                updates                       122 k
 cairo                                                i686             1.16.0-5.fc30                                   updates                       745 k
 cairo                                                x86_64           1.16.0-5.fc30                                   updates                       677 k
 gnome-shell                                          x86_64           3.32.2-2.fc30                                   updates                       1.4 M
 hwdata                                               noarch           0.324-1.fc30                                    updates                       1.5 M
     remplacement  hwdata.noarch 0.323-1.fc30
 kernel-headers                                       x86_64           5.1.5-300.fc30                                  updates                       1.2 M
 less                                                 x86_64           550-1.fc30                                      updates                       144 k
updates                       246 k
 libvirt-bash-completion                              x86_64           5.1.0-8.fc30                                    updates                        11 k
 libvirt-client                                       x86_64           5.1.0-8.fc30                                    updates                       310 k
 libvirt-daemon                                       x86_64           5.1.0-8.fc30                                    updates                       728 k
 libvirt-daemon-config-network                        x86_64           5.1.0-8.fc30                                    updates                        12 k
 libvirt-daemon-config-nwfilter                       x86_64           5.1.0-8.fc30                                    updates                        16 k
 libvirt-daemon-driver-interface                      x86_64           5.1.0-8.fc30                                    updates                        84 k
 libvirt-daemon-driver-libxl                          x86_64           5.1.0-8.fc30                                    updates                       188 k
 libvirt-daemon-driver-lxc                            x86_64           5.1.0-8.fc30                                    updates                       183 k
 libvirt-daemon-driver-network                        x86_64           5.1.0-8.fc30                                    updates                       272 k
 libvirt-daemon-driver-nodedev                        x86_64           5.1.0-8.fc30                                    updates                        84 k
 libvirt-daemon-driver-nwfilter                       x86_64           5.1.0-8.fc30                                    updates                       108 k
 libvirt-daemon-driver-qemu                           x86_64           5.1.0-8.fc30                                    updates                       637 k
 libvirt-daemon-driver-secret                         x86_64           5.1.0-8.fc30                                    updates                        74 k
 libvirt-daemon-driver-storage-core                   x86_64           5.1.0-8.fc30                                    updates                       305 k
 libvirt-daemon-driver-storage-disk                   x86_64           5.1.0-8.fc30                                    updates                        76 k
 libvirt-daemon-driver-storage-gluster                x86_64           5.1.0-8.fc30                                    updates                        86 k
 libvirt-daemon-driver-storage-iscsi                  x86_64           5.1.0-8.fc30                                    updates                        73 k
 libvirt-daemon-driver-storage-iscsi-direct           x86_64           5.1.0-8.fc30                                    updates                        75 k
 libvirt-daemon-driver-storage-logical                x86_64           5.1.0-8.fc30                                    updates                        77 k
 libvirt-daemon-driver-storage-mpath                  x86_64           5.1.0-8.fc30                                    updates                        71 k
 libvirt-daemon-driver-storage-rbd                    x86_64           5.1.0-8.fc30                                    updates                        81 k
 libvirt-daemon-driver-storage-scsi                   x86_64           5.1.0-8.fc30                                    updates                        73 k
 libvirt-daemon-driver-storage-sheepdog               x86_64           5.1.0-8.fc30                                    updates                        73 k
 libvirt-daemon-driver-vbox                           x86_64           5.1.0-8.fc30                                    updates                       166 k
 libvirt-devel                                        x86_64           5.1.0-8.fc30                                    updates                       174 k
 libvirt-libs                                         x86_64           5.1.0-8.fc30                                    updates                       4.2 M
 libwbclient                                          x86_64           2:4.10.4-1.fc30                                 updates                        45 k
 openssl                                              x86_64           1:1.1.1c-2.fc30                                 updates                       629 k
     remplacement  openssl.x86_64 1:1.1.1b-5.fc30
 openssl-libs                                         i686             1:1.1.1c-2.fc30                                 updates                       1.4 M
 openssl-libs                                         x86_64           1:1.1.1c-2.fc30                                 updates                       1.4 M
     remplacement  openssl-libs.x86_64 1:1.1.1b-5.fc30
Suppression:
 kernel                                               x86_64           5.0.14-300.fc30                                 @updates                        0  
 kernel-core                                          x86_64           5.0.14-300.fc30                                 @updates                       61 M
 kernel-devel                                         x86_64           5.0.14-300.fc30                                 @updates                       52 M
 kernel-modules                                       x86_64           5.0.14-300.fc30                                 @updates                       27 M
 kernel-modules-extra                                 x86_64           5.0.14-300.fc30                                 @updates                      2.1 M
Supprimer des paquets dépendants:
 kmod-VirtualBox-5.0.14-300.fc30.x86_64               x86_64           6.0.8-1.fc30                                    @@commandline                 866 k

Résumé de la transaction
===========                                        
...                                                                            
                                                                                                       1.3 MB/s | 405 MB     05:10     
  Exécution du scriptlet: papirus-icon-theme-20190521-1.fc30.noarch                                                                                    1/1 
  Préparation en cours  :                                                                                                                              1/1 
  Exécution du scriptlet: libvirt-libs-5.1.0-8.fc30.x86_64                                                                                             1/1 
  Mise à jour de        : libvirt-libs-5.1.0-8.fc30.x86_64                                                                                           1/179 
  Exécution du scriptlet: libvirt-daemon-5.1.0-8.fc30.x86_64                                                                                         2/179 
  Mise à jour de        : libvirt-daemon-5.1.0-8.fc30.x86_64                                                                                         2/179 
  Exécution du scriptlet: libvirt-daemon-5.1.0-8.fc30.x86_64                                                                                         2/179 
  Mise à jour de        : libvirt-daemon-driver-storage-core-5.1.0-8.fc30.x86_64                                                                     3/179 
  Mise à jour de        : cairo-1.16.0-5.fc30.x86_64                                                                                                 4/179 
  Exécution du scriptlet: samba-common-2:4.10.4-1.fc30.noarch                                                                                        5/179 
  Mise à jour de        : samba-common-2:4.10.4-1.fc30.noarch                                                                                        5/179 
  Exécution du scriptlet: samba-common-2:4.10.4-1.fc30.noarch                                                                                        5/179                         
  ...                                                                         11/179 
  Exécution du scriptlet: libreoffice-data-1:6.2.4.2-1.fc30.noarch                                                                                  11/179 
  Mise à jour de        : libvirt-daemon-driver-network-5.1.0-8.fc30.x86_64                                                                         13/179 
  Exécution du scriptlet: libvirt-daemon-driver-network-5.1.0-8.fc30.x86_64                                                                         13/179 
  Installation          : kernel-core-5.1.6-300.fc30.x86_64                                                                                         14/179 
  Exécution du scriptlet: kernel-core-5.1.6-300.fc30.x86_64                                                                                         14/179 
  Installation          : kernel-modules-5.1.6-300.fc30.x86_64                                                                                      15/179 
  Exécution du scriptlet: kernel-modules-5.1.6-300.fc30.x86_64                                                                                                                                                                          22/179 
  Mise à jour de        : libvirt-client-5.1.0-8.fc30.x86_64                                                                                        44/179 
  Exécution du scriptlet: libvirt-client-5.1.0-8.fc30.x86_64                                                                                        44/179 
  Mise à jour de        : perl-Module-CoreList-tools-1:5.20190524-1.fc30.noarch                                                                     45/179 
  Mise à jour de        : libvirt-daemon-config-nwfilter-5.1.0-8.fc30.x86_64                                                                        46/179 
  Exécution du scriptlet: libvirt-daemon-config-nwfilter-5.1.0-8.fc30.x86_64                                                                        46/179                              
...
  Installation          : kernel-5.1.6-300.fc30.x86_64                                                                                              52/179 
  Installation          : kernel-modules-extra-5.1.6-300.fc30.x86_64                                                                                53/179 
  Exécution du scriptlet: kernel-modules-extra-5.1.6-300.fc30.x86_64                                                                                53/179 
  Mise à jour de        : libvirt-daemon-config-network-5.1.0-8.fc30.x86_64                                                                         54/179 
  Exécution du scriptlet: libvirt-daemon-config-network-5.1.0-8.fc30.x86_64                                                                         54/179 
  Mise à jour de        : libvirt-daemon-driver-lxc-5.1.0-8.fc30.x86_64                                                                             55/179 
  Exécution du scriptlet: libvirt-daemon-driver-qemu-5.1.0-8.fc30.x86_64                                                                            
                                                                                
...
                                                                                  60/179 
  Exécution du scriptlet: google-chrome-stable-75.0.3770.80-1.x86_64                                                                                61/179 
  Exécution du scriptlet: google-chrome-stable-75.0.3770.80-1.x86_64                                                                                61/179 
Redirecting to /bin/systemctl start atd.service

  Mise à jour de        : libvirt-daemon-driver-storage-disk-5.1.0-8.fc30.x86_64                                                                    ...
  Mise à jour de        : libvirt-daemon-driver-secret-5.1.0-8.fc30.x86_64                                                                          74/179 
  Mise à jour de        : libvirt-daemon-driver-vbox-5.1.0-8.fc30.x86_64                                                                            75/179 
  Mise à jour de        : libvirt-devel-5.1.0-8.fc30.x86_64                                                                                         76/179 
  Exécution du scriptlet: papirus-icon-theme-20190521-1.fc30.noarch                                                                                 
...
                                                                                     83/179 
  Exécution du scriptlet: flat-remix-20190603-1.noarch                                                                                              83/179 
  Installation          : kernel-devel-5.1.6-300.fc30.x86_64                                                                                        84/179 
  Exécution du scriptlet: kernel-devel-5.1.6-300.fc30.x86_64                                                                                        84/179 
  Nettoyage de          : libvirt-devel-5.1.0-6.fc30.x86_64                                                                                         87/179 
  Suppression de        : kernel-5.0.14-300.fc30.x86_64                                                                                             89/179 
  Exécution du scriptlet: kernel-5.0.14-300.fc30.x86_64                                                                                             89/179 
  Nettoyage de          : libvirt-daemon-config-nwfilter-5.1.0-6.fc30.x86_64                                                                        91/179 
  Nettoyage de          : libvirt-daemon-config-network-5.1.0-6.fc30.x86_64                                                                         92/179 
  Suppression de        : kmod-VirtualBox-5.0.14-300.fc30.x86_64-6.0.8-1.fc30.x86_64                                                                93/179 
  Exécution du scriptlet: kmod-VirtualBox-5.0.14-300.fc30.x86_64-6.0.8-1.fc30.x86_64                                                                93/179 
  Nettoyage de          : perl-Module-CoreList-1:5.20190420-1.fc30.noarch                                                                           95/179 
  Suppression de        : kernel-devel-5.0.14-300.fc30.x86_64                                                                                       96/179 
...
                                                                                105/179 
  Exécution du scriptlet: flat-remix-20190525-1.noarch                                                                                                                                                                                 
...
                                                                                111/179 
  Exécution du scriptlet: samba-winbind-2:4.10.4-0.fc30.x86_64                                                                                     111/179 
  Exécution du scriptlet: libwbclient-2:4.10.4-0.fc30.x86_64                                                                                       
...
                                                             132/179 
  Exécution du scriptlet: libvirt-daemon-driver-network-5.1.0-6.fc30.x86_64                                                                        
...
          137/179 
  Nettoyage de          : libvirt-daemon-driver-vbox-5.1.0-6.fc30.x86_64                                                                           ...
  Nettoyage de          : libvirt-daemon-driver-storage-gluster-5.1.0-6.fc30.x86_64                                                                150/179 
  Nettoyage de          : libvirt-daemon-driver-storage-core-5.1.0-6.fc30.x86_64                                                                   151/179 
  Nettoyage de          : libvirt-daemon-driver-secret-5.1.0-6.fc30.x86_64                                                                         152/179 
  Exécution du scriptlet: libvirt-daemon-5.1.0-6.fc30.x86_64                                                                                       153/179 
  Nettoyage de          : libvirt-daemon-5.1.0-6.fc30.x86_64                                                                                       153/179 
  Exécution du scriptlet: libvirt-daemon-5.1.0-6.fc30.x86_64                                                                                       153/179 
  Suppression de        : kernel-modules-extra-5.0.14-300.fc30.x86_64                                                                              154/179 
  Exécution du scriptlet: kernel-modules-extra-5.0.14-300.fc30.x86_64                                                                              154/179 
  Suppression de        : kernel-modules-5.0.14-300.fc30.x86_64                                                                                    159/179 
  Exécution du scriptlet: kernel-modules-5.0.14-300.fc30.x86_64                                                                                    ...
                                                                            167/179 
  Exécution du scriptlet: libreoffice-data-1:6.2.3.2-5.fc30.noarch                                                                                 
...
173/179 
  Exécution du scriptlet: kernel-core-5.0.14-300.fc30.x86_64                                                                                       174/179 
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.

  Suppression de        : kernel-core-5.0.14-300.fc30.x86_64                                                                                       174/179 
attention : fichier /lib/modules/5.0.14-300.fc30.x86_64/updates : échec de la suppression : No such file or directory
  Nettoyage de          : libvirt-libs-5.1.0-6.fc30.x86_64                                                                                         176/179 
  Rend obsolète         : openssl-libs-1:1.1.1b-5.fc30.x86_64                                                                                      177/179 
  Exécution du scriptlet: libvirt-daemon-5.1.0-8.fc30.x86_64                                                                                       179/179 
  Exécution du scriptlet: libwbclient-2:4.10.4-1.fc30.x86_64                                                                                       179/179 
  Exécution du scriptlet: libreoffice-data-1:6.2.4.2-1.fc30.noarch                                                                                 179/179 
  Exécution du scriptlet: kernel-core-5.1.6-300.fc30.x86_64                                                                                        179/179 
grubby fatal error: unable to find a suitable template
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.

  Exécution du scriptlet: libvirt-daemon-config-nwfilter-5.1.0-8.fc30.x86_64                                                                       179/179 
  Exécution du scriptlet: libvirt-daemon-config-network-5.1.0-8.fc30.x86_64                                                                        179/179 
  Exécution du scriptlet: papirus-icon-theme-20190521-1.fc30.noarch                                                                                179/179 
....
175/179 
  Vérification de       : kernel-devel-5.0.14-300.fc30.x86_64                                                                                      176/179 
  Vérification de       : kernel-modules-5.0.14-300.fc30.x86_64                                                                                    177/179 
  Vérification de       : kernel-modules-extra-5.0.14-300.fc30.x86_64                                                                              178/179 
  Vérification de       : kmod-VirtualBox-5.0.14-300.fc30.x86_64-6.0.8-1.fc30.x86_64                                                               179/179 

Mis à niveau:
  autocorr-fr-1:6.2.4.2-1.fc30.noarch                                        cairo-1.16.0-5.fc30.i686                                                      
  hwdata-0.324-1.fc30.noarch                                                 kernel-headers-5.1.5-300.fc30.x86_64                                          
  libvirt-bash-completion-5.1.0-8.fc30.x86_64                                libvirt-client-5.1.0-8.fc30.x86_64                                            
  libvirt-daemon-5.1.0-8.fc30.x86_64                                         libvirt-daemon-config-network-5.1.0-8.fc30.x86_64                             
  libvirt-daemon-config-nwfilter-5.1.0-8.fc30.x86_64                         libvirt-daemon-driver-interface-5.1.0-8.fc30.x86_64                           
  libvirt-daemon-driver-libxl-5.1.0-8.fc30.x86_64                            libvirt-daemon-driver-lxc-5.1.0-8.fc30.x86_64                                 
  libvirt-daemon-driver-network-5.1.0-8.fc30.x86_64                          libvirt-daemon-driver-nodedev-5.1.0-8.fc30.x86_64                             
  libvirt-daemon-driver-nwfilter-5.1.0-8.fc30.x86_64                         libvirt-daemon-driver-qemu-5.1.0-8.fc30.x86_64                                
  libvirt-daemon-driver-secret-5.1.0-8.fc30.x86_64                           libvirt-daemon-driver-storage-core-5.1.0-8.fc30.x86_64                        
  libvirt-daemon-driver-storage-disk-5.1.0-8.fc30.x86_64                     libvirt-daemon-driver-storage-gluster-5.1.0-8.fc30.x86_64                     
  libvirt-daemon-driver-storage-iscsi-5.1.0-8.fc30.x86_64                    libvirt-daemon-driver-storage-iscsi-direct-5.1.0-8.fc30.x86_64                
  libvirt-daemon-driver-storage-logical-5.1.0-8.fc30.x86_64                  libvirt-daemon-driver-storage-mpath-5.1.0-8.fc30.x86_64                       
  libvirt-daemon-driver-storage-rbd-5.1.0-8.fc30.x86_64                      libvirt-daemon-driver-storage-scsi-5.1.0-8.fc30.x86_64                        
  libvirt-daemon-driver-storage-sheepdog-5.1.0-8.fc30.x86_64                 libvirt-daemon-driver-vbox-5.1.0-8.fc30.x86_64                                
  libvirt-devel-5.1.0-8.fc30.x86_64                                          libvirt-libs-5.1.0-8.fc30.x86_64                                              
  libwbclient-2:4.10.4-1.fc30.x86_64                                         openssl-1:1.1.1c-2.fc30.x86_64                                                
Installé:
  kernel-5.1.6-300.fc30.x86_64                kernel-core-5.1.6-300.fc30.x86_64  kernel-devel-5.1.6-300.fc30.x86_64  kernel-modules-5.1.6-300.fc30.x86_64 
  kernel-modules-extra-5.1.6-300.fc30.x86_64 

Supprimé:
  kernel-5.0.14-300.fc30.x86_64             kernel-core-5.0.14-300.fc30.x86_64              kernel-devel-5.0.14-300.fc30.x86_64                           
  kernel-modules-5.0.14-300.fc30.x86_64     kernel-modules-extra-5.0.14-300.fc30.x86_64     kmod-VirtualBox-5.0.14-300.fc30.x86_64-6.0.8-1.fc30.x86_64    

I also notice that if i attempt to reboot the computer, the computer asks for my password, as if something was wrong. Last time this situation has happened i ended with a black screen on reboot.

Thank you for your help.

Hi, @mhhcbon!

I see several issues in your post, and I’m not sure I can provide assistance with them all.

Let’s try to see what’s with grubby first.

Please post output of these two commands:

uname -a
sudo grubby --info ALL

Also: did you upgrade from older Fedora (from 29th or older) or reinstalled F30?

The second potential issue I see is this command:

Is there any particular reason you’re using --best and --allowerasing now or do you use them always? I don’t think it’s a good idea to use them always, I’ve seen them used when people have some troubles with their packages. Did you use them to resolve some specific trouble?

Can you provide a screenshot? Does this happen when you press “Reboot” in Gnome or at some other moment?

1 Like

hi,

thanks for your help! I have been using those flag with DNF for looonnnnggggg tttiiiiimmmmeeee. I know it is not intended to be used regularly, but it seems to work better… my system is rather old, maybe since f24 something like that.

For the password box, i have retried to reboot, and it worked smoothly. The auth was a temporary thing, although i dont know what.

The output is

$ uname -a
Linux pc1.home 5.1.6-300.fc30.x86_64 #1 SMP Fri May 31 17:43:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[mh-cbon@pc1 ~] $ sudo grubby --info ALL
grubby: kernel not found

I checked what grubby is (grubby: command line tool used to configure bootloader menu entries across - Linux Man Pages (8)), that sounds bad : /

I wonder if this might be related to the various vagrant box things i had to install over the years, this used to be really broken lol

If you can give me some more help or details that s cool, thanks.

The issue with this flags is if dnf is confused with something for some reason – and this happens from time to time – you’ve given it permission to erase packages it doesn’t like. You can erase something your system needs this way.

Grubby is a program that updates bootloader’s config with new kernels which get installed with updates. and you were right, troubles with it could lead to something like this:

– As far as I know it should not, though no guarantees here)

We need to check your bootloader config and fix it (it’s usually quite easy to do). When did you reboot last time? If you didn’t for some time – I suggest you not to reboot until this issue is resolved, or you system may be unable to boot (as you’ve said yourself).

First of all we need to know If your system boots in UEFI mode or legacy mode. Output on this command will provide the information:

test -d /sys/firmware/efi && echo EFI || echo Legacy

After your reply I’ll try to provide some more steps to take.

1 Like

thanks! I m about to attempt reboot, despite your warnings i know, i have this other issue about gdm that needs to be handled =)

Concerning the bootloading, i have not met fatal issues with it for quiet a long time.
The only thing i have noticed is

$ sudo journalctl -b -p err
– Logs begin at Mon 2019-03-04 13:52:58 CET, end at Mon 2019-06-10 11:46:14 CEST. –
juin 10 10:25:52 localhost.localdomain systemd-modules-load[287]: Failed to find module ‘vboxdrv’
juin 10 10:25:52 localhost.localdomain systemd-modules-load[287]: Failed to find module ‘vboxnetflt’
juin 10 10:25:52 localhost.localdomain systemd-modules-load[287]: Failed to find module ‘vboxnetadp’
juin 10 10:25:52 localhost.localdomain systemd-modules-load[287]: Failed to find module ‘vboxpci’

but i left that out as non blocking to boot and because this is vagrant related which is a pain whatsoever.

the firmware is legacy,

$ test -d /sys/firmware/efi && echo EFI || echo Legacy
Legacy

I also have updated the system with a new kernel and it complained about grubby, same as before,

Exécution du scriptlet: kernel-modules-5.0.16-300.fc30.x86_64 40/41
Exécution du scriptlet: kernel-core-5.0.16-300.fc30.x86_64 41/41
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.

Suppression de : kernel-core-5.0.16-300.fc30.x86_64 41/41
attention : fichier /lib/modules/5.0.16-300.fc30.x86_64/updates : échec de la suppression : No such file or directory

Exécution du scriptlet: glibc-all-langpacks-2.29-15.fc30.x86_64 41/41
Exécution du scriptlet: kernel-core-5.1.7-300.fc30.x86_64 41/41
grubby fatal error: unable to find a suitable template
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.

Exécution du scriptlet: kernel-core-5.0.16-300.fc30.x86_64 41/41
Exécution du scriptlet: glibc-common-2.29-15.fc30.x86_64

Please post your current grub.cfg. It should be here (if I remember correctly):

sudo cat /boot/grub2/grub.cfg

Basically, your case looks quite like this entry from Common Fedora 30 Bugs.

If you’re right now in the working F30 system (if you haven’t rebooted since your last post), then you can fix it before you reboot)

1 Like

Thanks, I have run the command sudo grub2-install /dev/sda.

It did not complain, it created the file /boot/grub2/i386-pc

I rebooted, it still worked! I ll wait for another kernel updates to see.

@mhhcbon, If you’re rebooted an able to write here, then I think you’re ok :slight_smile:

You can test right now again with

sudo grubby --info ALL

If it gives you a list of boot options (with various kernels) – then you’re good to go, and next kernel update should be ok too.

If it complains that it can’t find kernel or something like this – then maybe we should check this some more.

1 Like
$ sudo grubby --info ALL
[sudo] Mot de passe de mh-cbon : 
grubby: kernel not found

That’s weird. Especially because the boot worked properly. i m stumped.

I’d suggest to try to debug this, it shouldn’t be like this )

Can you post here output of:

sudo cat /boot/grub2/grub.cfg
1 Like

of course!

sudo cat /boot/grub2/grub.cfg

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub2-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    set pager=1

    if [ -f ${config_directory}/grubenv ]; then
      load_env -f ${config_directory}/grubenv
    elif [ -s $prefix/grubenv ]; then
      load_env
    fi
    if [ "${next_entry}" ] ; then
       set default="${next_entry}"
       set next_entry=
       save_env next_entry
       set boot_once=true
    else
       set default="${saved_entry}"
    fi

    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
    else
      menuentry_id_option=""
    fi

    export menuentry_id_option

    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi

    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }

    function load_video {
      if [ x$feature_all_video_module = xy ]; then
        insmod all_video
      else
        insmod efi_gop
        insmod efi_uga
        insmod ieee1275_fb
        insmod vbe
        insmod vga
        insmod video_bochs
        insmod video_cirrus
      fi
    }

    terminal_output console
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=5
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/01_users ###
    if [ -f ${prefix}/user.cfg ]; then
      source ${prefix}/user.cfg
      if [ -n "${GRUB2_PASSWORD}" ]; then
        set superusers="root"
        export superusers
        password_pbkdf2 root ${GRUB2_PASSWORD}
      fi
    fi
    ### END /etc/grub.d/01_users ###

    ### BEGIN /etc/grub.d/08_fallback_counting ###
    insmod increment
    # Check if boot_counter exists and boot_success=0 to activate this behaviour.
    if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
      # if countdown has ended, choose to boot rollback deployment,
      # i.e. default=1 on OSTree-based systems.
      if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
        set default=1
        set boot_counter=-1
      # otherwise decrement boot_counter
      else
        decrement boot_counter
      fi
      save_env boot_counter
    fi
    ### END /etc/grub.d/08_fallback_counting ###

    ### BEGIN /etc/grub.d/10_linux ###
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
    else
      search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
    fi
    insmod part_msdos
    insmod ext2
    set boot='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
    else
      search --no-floppy --fs-uuid --set=boot b4843abc-dcee-4815-8c15-83332906db71
    fi

    # This section was generated by a script. Do not modify the generated file - all changes
    # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
    #
    # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
    # populates the boot menu. Please refer to the Boot Loader Specification documentation
    # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.

    set default_kernelopts="root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet "

    insmod blscfg
    blscfg
    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/10_reset_boot_success ###
    insmod increment
    # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
    if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
      set menu_hide_ok=1
    else
      set menu_hide_ok=0 
    fi
    # Reset boot_indeterminate after a successful boot, increment otherwise
    if [ "${boot_success}" = "1" ] ; then
      set boot_indeterminate=0
    else
      increment boot_indeterminate
    fi
    # Reset boot_success for current boot 
    set boot_success=0
    save_env boot_success boot_indeterminate
    ### END /etc/grub.d/10_reset_boot_success ###

    ### BEGIN /etc/grub.d/12_menu_auto_hide ###
    if [ x$feature_timeout_style = xy ] ; then
      if [ "${menu_show_once}" ]; then
        unset menu_show_once
        save_env menu_show_once
        set timeout_style=menu
        set timeout=60
      elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
        set orig_timeout_style=${timeout_style}
        set orig_timeout=${timeout}
        if [ "${fastboot}" = "1" ]; then
          # timeout_style=menu + timeout=0 avoids the countdown code keypress check
          set timeout_style=menu
          set timeout=0
        else
          set timeout_style=hidden
          set timeout=1
        fi
      fi
    fi
    ### END /etc/grub.d/12_menu_auto_hide ###

    ### BEGIN /etc/grub.d/20_linux_xen ###

    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/20_ppc_terminfo ###
    ### END /etc/grub.d/20_ppc_terminfo ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###

    ### BEGIN /etc/grub.d/40_custom ###
    # 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.
    ### END /etc/grub.d/40_custom ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  ${config_directory}/custom.cfg ]; then
      source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###

sudo cat /boot/grub2/grub.cfg.rpmsave

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub2-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    set pager=1

    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    if [ "${next_entry}" ] ; then
       set default="${next_entry}"
       set next_entry=
       save_env next_entry
       set boot_once=true
    else
       set default="${saved_entry}"
    fi

    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
    else
      menuentry_id_option=""
    fi

    export menuentry_id_option

    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi

    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }

    function load_video {
      if [ x$feature_all_video_module = xy ]; then
        insmod all_video
      else
        insmod efi_gop
        insmod efi_uga
        insmod ieee1275_fb
        insmod vbe
        insmod vga
        insmod video_bochs
        insmod video_cirrus
      fi
    }

    terminal_output console
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=5
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/01_users ###
    if [ -f ${prefix}/user.cfg ]; then
      source ${prefix}/user.cfg
      if [ -n "${GRUB2_PASSWORD}" ]; then
        set superusers="root"
        export superusers
        password_pbkdf2 root ${GRUB2_PASSWORD}
      fi
    fi
    ### END /etc/grub.d/01_users ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Fedora (5.0.13-300.fc30.x86_64) 30 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.8.6-300.fc25.x86_64-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
    	else
    	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
    	fi
    	linux16 /vmlinuz-5.0.13-300.fc30.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=fr_FR.UTF-8
    	initrd16 /initramfs-5.0.13-300.fc30.x86_64.img
    }
    menuentry 'Fedora (5.0.10-200.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.8.6-300.fc25.x86_64-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
    	else
    	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
    	fi
    	linux16 /vmlinuz-5.0.10-200.fc29.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=fr_FR.UTF-8
    	initrd16 /initramfs-5.0.10-200.fc29.x86_64.img
    }
    menuentry 'Fedora (0-rescue-8220b0ff33294af5b85d94866520933e) 25 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-8220b0ff33294af5b85d94866520933e-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
    	load_video
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
    	else
    	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
    	fi
    	linux16 /vmlinuz-0-rescue-8220b0ff33294af5b85d94866520933e root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
    	initrd16 /initramfs-0-rescue-8220b0ff33294af5b85d94866520933e.img
    }

    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_linux_xen ###

    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/20_ppc_terminfo ###
    ### END /etc/grub.d/20_ppc_terminfo ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # 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.
    ### END /etc/grub.d/40_custom ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  ${config_directory}/custom.cfg ]; then
      source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###

diff grub.cfg grub.cfg.rpmsave | colordiff

diff --git a/a.cfg b/b.cfg
index e63fb26..0a4b585 100644
--- a/a.cfg
+++ b/b.cfg
@@ -8,9 +8,7 @@
 ### BEGIN /etc/grub.d/00_header ###
 set pager=1
 
-if [ -f ${config_directory}/grubenv ]; then
-  load_env -f ${config_directory}/grubenv
-elif [ -s $prefix/grubenv ]; then
+if [ -s $prefix/grubenv ]; then
   load_env
 fi
 if [ "${next_entry}" ] ; then
@@ -81,98 +79,54 @@ if [ -f ${prefix}/user.cfg ]; then
 fi
 ### END /etc/grub.d/01_users ###
 
-### BEGIN /etc/grub.d/08_fallback_counting ###
-insmod increment
-# Check if boot_counter exists and boot_success=0 to activate this behaviour.
-if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
-  # if countdown has ended, choose to boot rollback deployment,
-  # i.e. default=1 on OSTree-based systems.
-  if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
-    set default=1
-    set boot_counter=-1
-  # otherwise decrement boot_counter
-  else
-    decrement boot_counter
-  fi
-  save_env boot_counter
-fi
-### END /etc/grub.d/08_fallback_counting ###
-
 ### BEGIN /etc/grub.d/10_linux ###
-insmod part_msdos
-insmod ext2
-set root='hd0,msdos1'
-if [ x$feature_platform_search_hint = xy ]; then
-  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
-else
-  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
-fi
-insmod part_msdos
-insmod ext2
-set boot='hd0,msdos1'
-if [ x$feature_platform_search_hint = xy ]; then
-  search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
-else
-  search --no-floppy --fs-uuid --set=boot b4843abc-dcee-4815-8c15-83332906db71
-fi
-
-# This section was generated by a script. Do not modify the generated file - all changes
-# will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
-#
-# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
-# populates the boot menu. Please refer to the Boot Loader Specification documentation
-# for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.
-
-set default_kernelopts="root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet "
+menuentry 'Fedora (5.0.13-300.fc30.x86_64) 30 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.8.6-300.fc25.x86_64-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
+	load_video
+	set gfxpayload=keep
+	insmod gzio
+	insmod part_msdos
+	insmod ext2
+	set root='hd0,msdos1'
+	if [ x$feature_platform_search_hint = xy ]; then
+	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
+	else
+	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
+	fi
+	linux16 /vmlinuz-5.0.13-300.fc30.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=fr_FR.UTF-8
+	initrd16 /initramfs-5.0.13-300.fc30.x86_64.img
+}
+menuentry 'Fedora (5.0.10-200.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.8.6-300.fc25.x86_64-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
+	load_video
+	set gfxpayload=keep
+	insmod gzio
+	insmod part_msdos
+	insmod ext2
+	set root='hd0,msdos1'
+	if [ x$feature_platform_search_hint = xy ]; then
+	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
+	else
+	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
+	fi
+	linux16 /vmlinuz-5.0.10-200.fc29.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=fr_FR.UTF-8
+	initrd16 /initramfs-5.0.10-200.fc29.x86_64.img
+}
+menuentry 'Fedora (0-rescue-8220b0ff33294af5b85d94866520933e) 25 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-8220b0ff33294af5b85d94866520933e-advanced-1887c261-24d5-44d6-a7d7-7a936260b4a3' {
+	load_video
+	insmod gzio
+	insmod part_msdos
+	insmod ext2
+	set root='hd0,msdos1'
+	if [ x$feature_platform_search_hint = xy ]; then
+	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  b4843abc-dcee-4815-8c15-83332906db71
+	else
+	  search --no-floppy --fs-uuid --set=root b4843abc-dcee-4815-8c15-83332906db71
+	fi
+	linux16 /vmlinuz-0-rescue-8220b0ff33294af5b85d94866520933e root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
+	initrd16 /initramfs-0-rescue-8220b0ff33294af5b85d94866520933e.img
+}
 
-insmod blscfg
-blscfg
-if [ -s $prefix/grubenv ]; then
-  load_env
-fi
 ### END /etc/grub.d/10_linux ###
 
-### BEGIN /etc/grub.d/10_reset_boot_success ###
-insmod increment
-# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
-if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
-  set menu_hide_ok=1
-else
-  set menu_hide_ok=0 
-fi
-# Reset boot_indeterminate after a successful boot, increment otherwise
-if [ "${boot_success}" = "1" ] ; then
-  set boot_indeterminate=0
-else
-  increment boot_indeterminate
-fi
-# Reset boot_success for current boot 
-set boot_success=0
-save_env boot_success boot_indeterminate
-### END /etc/grub.d/10_reset_boot_success ###
-
-### BEGIN /etc/grub.d/12_menu_auto_hide ###
-if [ x$feature_timeout_style = xy ] ; then
-  if [ "${menu_show_once}" ]; then
-    unset menu_show_once
-    save_env menu_show_once
-    set timeout_style=menu
-    set timeout=60
-  elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
-    set orig_timeout_style=${timeout_style}
-    set orig_timeout=${timeout}
-    if [ "${fastboot}" = "1" ]; then
-      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
-      set timeout_style=menu
-      set timeout=0
-    else
-      set timeout_style=hidden
-      set timeout=1
-    fi
-  fi
-fi
-### END /etc/grub.d/12_menu_auto_hide ###
-
 ### BEGIN /etc/grub.d/20_linux_xen ###
 
 ### END /etc/grub.d/20_linux_xen ###
@@ -183,9 +137,6 @@ fi
 ### BEGIN /etc/grub.d/30_os-prober ###
 ### END /etc/grub.d/30_os-prober ###
 
-### BEGIN /etc/grub.d/30_uefi-firmware ###
-### END /etc/grub.d/30_uefi-firmware ###
-
 ### BEGIN /etc/grub.d/40_custom ###
 # 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

but this does not match the list of kernels at boot time. I have the most recent kernel available on fedora

$ uname -a
Linux pc1.home 5.1.7-300.fc30.x86_64 #1 SMP Wed Jun 5 12:32:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@mhhcbon, your current grub.cfg looks ok.

grub.cfg.rpmsave is a backup that was made, I think, when you’ve upgraded to F30. This is why it doesn’t contain current kernels.

Let’s look at grubby package(s) you have installed:

sudo dnf list 'grubby*'
1 Like

It shows,

packages installed
grubby.x86_64                             8.40-18.fc29     @System
grubby.x86_64                             8.40-30.fc30     @fedora
packages availables
grubby-deprecated.x86_64                  8.40-30.fc30      fedora

the fc29 package is bolded, so i think it means it is the one installed, which might be a possible cause.

But the fc30 package is marked deprecated under the available packages list. weird.

thanks again I am lucky you are helping.

You’re absolutely right, fc29 package is a culprit.

F30 has two versions of grubby: old one (we don’t need) in the package grubby-deprecated, and new one which we need in package grubby (but f30 version!).

So we’ll delete the f29 version:

sudo dnf remove grubby-8.40-18.fc29.x68_64

verify you now have just one installed:

sudo dnf list installed 'grubby*'

and I’d reinstall it just to be on a safe side:

sudo dnf reinstall grubby

After this check again, what grubby has to say:

sudo grubby --info ALL

It should list several boot options for f30 kernels.

1 Like

the remove command has a small typo in it, it should be, sudo dnf remove grubby-8.40-18.fc29

perfect answer, I learned for future, thank you very much!

Yep, you’re right. :slight_smile: It should be either with x86_64 (not dash but underline symbol), or package version without specifying architecture. I’ve corrected the typo.

Also if you’ve had one duplicated package, you can have more. You can try

sudo dnf check

to check for any errors, or

sudo dnf check --duplicates

to check for duplicates specifically. As far as I know first variant should do all the checks including the duplicates one.

That’s the most useful thing! You’re welcome! :slight_smile:

1 Like

$ dnf check --duplicates | wc -l
Erreur : Check discovered 671 problem(s)
671

^^ unless there is some warnings i should be aware of before proceeding, i ll script that out to re-install those packages : )

I don’t have any warning, never done this myself.

Several people here and on old version of discussion.fedoraproject.org site did have problems with duplicates (after upgrade or even after ordinary dnf update), people suggested just to remove older versions without reinstalling anything.

So maybe it’s enough just to remove old ones. Maybe keep the list handy in case you understand you want to reinstall newer ones later.