Re: [Hampshire] Anyone familiar with Grub2?

Top Page

Reply to this message
Author: John Cooper
Date:  
To: lug, Hampshire LUG Discussion List
Subject: Re: [Hampshire] Anyone familiar with Grub2?
What about adding the lvm to the grub2 install

--modules="part_gpt lvm ext2"

(from https://bbs.archlinux.org/viewtopic.php?id=133925 )

On 22/01/12 13:27, Vic wrote:
>
>> grub2-mkconfig -o /boot/grub2/grub.cfg
>> grub2-install /dev/sda
>
> That fails in exactly the same way...
>
> It is clear that the lvm subsystem is not being set up properly; both
> partitions on sda are seen, but neither can be used as a rootfs, because
> the rootfs is in a LV on one of them.
>
> The old grub-install used to do the same thing - it would only include lvm
> in the initrd if the rootfs was on a LV. If rootfs was not on a LV, but
> one of the other necessary filesystems were, you'd get no lvm support in
> your initrd, and the boot would then fail.
>
> But with grub2, I'm a bit lost as to how to fix things. Even putting an
> explicit "insmod lvm" into grub.cfg doesn't seem to get things going...
>
> Vic.
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------
>



--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------