Projekt

Allgemein

Profil

Howto grub2 » Historie » Version 1

Jeremias Keihsler, 04.09.2024 15:26

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