1 |
On Sun, Jun 13, 2021 at 05:38:53PM -0000, Grant Edwards wrote |
2 |
> On 2021-06-13, Walter Dnes <waltdnes@××××××××.org> wrote: |
3 |
> |
4 |
> > I'd be tempted to do a manual gub.cfg if I had documentation. |
5 |
> |
6 |
> I gave up on the grub2 auto-magical config system many years ago. My |
7 |
> grub.cfg is typically 10-20 lines long. The documentation is at |
8 |
> |
9 |
> https://www.gnu.org/software/grub/manual/grub/grub.html |
10 |
> |
11 |
> For manual confiuration: see section 6: |
12 |
> |
13 |
> https://www.gnu.org/software/grub/manual/grub/html_node/Configuration.html#Configuration |
14 |
|
15 |
When experimenting with this, I'll backup grub.cfg. If things go |
16 |
awry, boot with the USB key I used for the install, and copy back the |
17 |
old known working grub.cfg. I've done a first crack at this. I assume |
18 |
that nothing in /etc/default/grub will have any effect. Questions... |
19 |
|
20 |
1) Is "insmod extfs3" necessary? I've built extfs3 into the kernels. |
21 |
2) I assume that the the first "menuentry" will be the default boot? |
22 |
3) Is the default timeout still 5 seconds? |
23 |
3) I assume that 640x480 is supported on just about every monitor |
24 |
out there. I want as large text as possible. My eyes are getting |
25 |
old... just like me. Any obvious errors in the following grub.cfg? |
26 |
|
27 |
===================================================================== |
28 |
menuentry 'Linux Experimental' --class gnu-linux { |
29 |
set gfxpayload=640x480 |
30 |
insmod ext3fs |
31 |
set root='hd0,gpt1' |
32 |
linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
33 |
} |
34 |
menuentry 'Linux Experimental Recovery' --class gnu-linux { |
35 |
set gfxpayload=640x480 |
36 |
insmod ext3fs |
37 |
set root='hd0,gpt1' |
38 |
linux /vmlinuz-experimental root=/dev/sda2 ro |
39 |
} |
40 |
menuentry 'Linux Production' --class gnu-linux { |
41 |
set gfxpayload=640x480 |
42 |
insmod ext3fs |
43 |
set root='hd0,gpt1' |
44 |
linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
45 |
} |
46 |
menuentry 'Linux Production Recovery' --class gnu-linux { |
47 |
set gfxpayload=640x480 |
48 |
insmod ext3fs |
49 |
set root='hd0,gpt1' |
50 |
linux /vmlinuz-production root=/dev/sda2 ro |
51 |
} |
52 |
===================================================================== |
53 |
|
54 |
Something that occured to me. Can I move the duplicated lines to the |
55 |
top of the file and take them out of the menuentries? E.g. |
56 |
|
57 |
===================================================================== |
58 |
set gfxpayload=640x480 |
59 |
insmod ext3fs |
60 |
set root='hd0,gpt1' |
61 |
menuentry 'Linux Experimental' --class gnu-linux { |
62 |
linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
63 |
} |
64 |
menuentry 'Linux Experimental Recovery' --class gnu-linux { |
65 |
linux /vmlinuz-experimental root=/dev/sda2 ro |
66 |
} |
67 |
menuentry 'Linux Production' --class gnu-linux { |
68 |
linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
69 |
} |
70 |
menuentry 'Linux Production Recovery' --class gnu-linux { |
71 |
linux /vmlinuz-production root=/dev/sda2 ro |
72 |
} |
73 |
===================================================================== |
74 |
|
75 |
-- |
76 |
Walter Dnes <waltdnes@××××××××.org> |
77 |
I don't run "desktop environments"; I run useful applications |