1 |
On Mon, Jun 14, 2021 at 12:20:44AM +0100, Neil Bothwick wrote |
2 |
> On Sun, 13 Jun 2021 18:57:49 -0400, Walter Dnes wrote: |
3 |
> |
4 |
> /etc/default/grub is only used when you call grub-mkconfig. |
5 |
> |
6 |
> > 1) Is "insmod extfs3" necessary? I've built extfs3 into the kernels. |
7 |
> |
8 |
> If the kernel is on an ext3 filesystem, yes. This is GRUB's module, it |
9 |
> uses it to read an ext3 filesystem in order to load the kernel. |
10 |
|
11 |
Some confusion here. "fdisk -l" on my new machine gives... |
12 |
|
13 |
Device Start End Sectors Size Type |
14 |
/dev/sda1 2048 526335 524288 256M EFI System |
15 |
/dev/sda2 526336 1886416303 1885889968 899.3G Linux filesystem |
16 |
/dev/sda3 1886418352 1953523119 67104768 32G Linux filesystem |
17 |
|
18 |
The EFI Systen partition is fat32. The web examples I read show |
19 |
"insmod <filesystem>" matching the filesystem of the linux system being |
20 |
booted. But all entries in grub.cfg on my new machine are "insmod fat". |
21 |
I wonder if the web documentation was referring to BIOS-booting machines. |
22 |
grub.cfg would be sitting on an xfs or extfs3 or whatever file system, |
23 |
and would need to read it off that filesystem. |
24 |
|
25 |
I have a UEFI system which demands a fat32 boot partition. Since grub |
26 |
and the kernels are sitting on a fat32 partition, my machine needs |
27 |
"insmod fat". |
28 |
|
29 |
Things that make you go hmmmm... |
30 |
* you need to put "insmod fat" in grub.cfg to tell grub that the kernels |
31 |
are sitting on a fat32 partition |
32 |
* but grub has to first read grub.cfg on the fat32 partition before it |
33 |
knows that it must read a fat32 partition |
34 |
|
35 |
I wonder if this is due to the verbose automagic configuration. I |
36 |
also noticed that all menuentries on my machine contain "insmod gzio |
37 |
and "insmod part_gpt", so I'm including them here. Here is my proposed |
38 |
grub.cfg. If anybody sees any problems, please let me know. Otherwise, |
39 |
I'll try the following tomorrow on the new machine... |
40 |
|
41 |
======================================================================== |
42 |
|
43 |
set timeout_style=menu |
44 |
set timeout=15 |
45 |
insmod vga |
46 |
set gfxpayload=640x480 |
47 |
insmod gzio |
48 |
insmod part_gpt |
49 |
insmod fat |
50 |
set root='hd0,gpt1' |
51 |
menuentry 'Linux Experimental' --class gnu-linux { |
52 |
linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
53 |
} |
54 |
menuentry 'Linux Experimental Recovery' --class gnu-linux { |
55 |
linux /vmlinuz-experimental root=/dev/sda2 ro |
56 |
} |
57 |
menuentry 'Linux Production' --class gnu-linux { |
58 |
linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 |
59 |
} |
60 |
menuentry 'Linux Production Recovery' --class gnu-linux { |
61 |
linux /vmlinuz-production root=/dev/sda2 ro |
62 |
} |
63 |
|
64 |
|
65 |
-- |
66 |
Walter Dnes <waltdnes@××××××××.org> |
67 |
I don't run "desktop environments"; I run useful applications |