Howto grub2 » Historie » Version 3
Jeremias Keihsler, 12.10.2023 07:23
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 | 3 | Jeremias Keihsler | or if you are using @Rocky Linux@ |
18 | |||
19 | <pre><code class="bash"> |
||
20 | grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg |
||
21 | </code></pre> |
||
22 | |||
23 | 2 | Jeremias Keihsler | h2. remember last choice on reboot |
24 | |||
25 | taken from: https://nocache.org/p/make-grub-grub2-remember-last-choice-on-linux |
||
26 | |||
27 | <pre><code class="bash"> |
||
28 | cp /etc/default/grub /etc/default/grub.bak |
||
29 | vim /etc/default/grub |
||
30 | </code></pre> |
||
31 | |||
32 | add or edit the parameters @GRUB_DEFAULT@ and @GRUB_SAVEDEFAULT@ |
||
33 | |||
34 | <pre><code class="ini"> |
||
35 | GRUB_DEFAULT=saved |
||
36 | GRUB_SAVEDEFAULT=true |
||
37 | </code></pre> |
||
38 | |||
39 | generate GRUB configuration |
||
40 | |||
41 | <pre><code class="bash"> |
||
42 | grub2-mkconfig -o /boot/grub2/grub.cfg |
||
43 | </code></pre> |
||
44 | 1 | Jeremias Keihsler | |
45 | h2. make detailed boot-information visible |
||
46 | |||
47 | while it's possible to edit '/boot/grub2/grub.cfg' and also '/etc/default/grub' the better approach is to: |
||
48 | <pre><code class="bash"> |
||
49 | plymouth-set-default-theme details |
||
50 | dracut -f |
||
51 | </code></pre> |