Projekt

Allgemein

Profil

Howto grub2 » Historie » Version 2

Jeremias Keihsler, 11.10.2023 16:28

1 1 Jeremias Keihsler
h1. GRUB 2
2
3
h2. Recreate Grub-Menu
4
5
for BIOS-systems
6
7
<pre><code class="bash">
8
grub2-mkconfig -o /boot/grub2/grub.cfg
9
</code></pre>
10
11
on EFI-systems 
12
13
<pre><code class="bash">
14
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
15
</code></pre>
16
17 2 Jeremias Keihsler
h2. remember last choice on reboot
18
19
taken from: https://nocache.org/p/make-grub-grub2-remember-last-choice-on-linux
20
21
<pre><code class="bash">
22
cp /etc/default/grub /etc/default/grub.bak
23
vim /etc/default/grub
24
</code></pre>
25
26
add or edit the parameters @GRUB_DEFAULT@ and @GRUB_SAVEDEFAULT@
27
28
<pre><code class="ini">
29
GRUB_DEFAULT=saved
30
GRUB_SAVEDEFAULT=true
31
</code></pre>
32
33
generate GRUB configuration
34
35
<pre><code class="bash">
36
grub2-mkconfig -o /boot/grub2/grub.cfg
37
</code></pre>
38 1 Jeremias Keihsler
39
h2. make detailed boot-information visible
40
41
while it's possible to edit '/boot/grub2/grub.cfg' and also '/etc/default/grub' the better approach is to:
42
<pre><code class="bash">
43
plymouth-set-default-theme details
44
dracut -f
45
</code></pre>