Projekt

Allgemein

Profil

Howto grub2 » Historie » Revision 2

Revision 1 (Jeremias Keihsler, 12.02.2020 16:44) → Revision 2/3 (Jeremias Keihsler, 11.10.2023 16:28)

h1. GRUB 2 

 h2. Recreate Grub-Menu 

 for BIOS-systems 

 <pre><code class="bash"> 
 grub2-mkconfig -o /boot/grub2/grub.cfg 
 </code></pre> 

 on EFI-systems  

 <pre><code class="bash"> 
 grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg 
 </code></pre> 

 h2. remember last choice on reboot 

 taken from: https://nocache.org/p/make-grub-grub2-remember-last-choice-on-linux 

 <pre><code class="bash"> 
 cp /etc/default/grub /etc/default/grub.bak 
 vim /etc/default/grub 
 </code></pre> 

 add or edit the parameters @GRUB_DEFAULT@ and @GRUB_SAVEDEFAULT@ 

 <pre><code class="ini"> 
 GRUB_DEFAULT=saved 
 GRUB_SAVEDEFAULT=true 
 </code></pre> 

 generate GRUB configuration 

 <pre><code class="bash"> 
 grub2-mkconfig -o /boot/grub2/grub.cfg 
 </code></pre> 

 


 h2. make detailed boot-information visible 

 while it's possible to edit '/boot/grub2/grub.cfg' and also '/etc/default/grub' the better approach is to: 
 <pre><code class="bash"> 
 plymouth-set-default-theme details 
 dracut -f 
 </code></pre>