On Wed, 25 Nov 2020 08:53:02 +0000, Wols Lists wrote: > >>> I suspect not as GRUB will be reading the menu files and GRUB > >>> doesn't read from LVM volumes. > >> > >> Then what does grub's "lvm" module do, and how does it read the > >> distro's .cfg files from the LVM volumes in which the various distros > >> are installed? > > > > Maybe what you want. I haven't used LVM or GRUB much n the past > > several years, so maybe it is OK now, although a quick web search > > before I posted implied it wasn't. RTFM time? > > > > > I *think* the grub volume itself has to be plain, no lvm, mdadm etc. All > the stuff for that is in the initramfs, so grub loads the initramfs, > starts the kernel, the kernel starts pid 1 which can now start mdadm, > lvm etc, and then it can pivot root onto the proper root filesystem.
That was my thinking, that the kernel/initramfs was reading the LVs but Grant mentioned the lvm module for GRUB so I broke the habit of a lifetime and read the man page :-O "GRUB 2 can read files directly from LVM and RAID devices." -- Neil Bothwick Top Oxymorons Number 6: Pretty ugly
pgpXuHEL08CK5.pgp
Description: OpenPGP digital signature