On Feb 7, 2007, at 2:00 PM, Mark Hannessen wrote:


ok I now made it look like this:

menuentry "My Linux Kernel on (lvm2_core-boot)" {
    set root=(lvm2_core_boot)
    linux (lvm2_core_boot)/boot/vmlinuz root=/dev/ram
    initrd (lvm2_core_boot)/boot/initrd
}


My config with lvm looks pretty similar but I am using an initramfs image and its looking like this

menuentry "Debian GNU/Linux, linux 2.6.20" {
  set root=(fatoftheland-main)
  linux /boot/vmlinuz-2.6.20 root=/dev/mapper/fatoftheland-main ro
  initrd  /boot/initrd.img-2.6.20
}


this I used for my core.img

grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc linux
_linux boot chain configfile fshelp help lvm


As far as I remember (it has been a long time since I last created the core.img file) the order is important. Try

grub-mkimage -o /boot/grub/core.img pc lvm ext2 _chain

and this is the most far I got:

grub-setup -d /boot/grub -v -r '(lvm2_core-boot)' -m /boot/grub/ device.map '(lvm2_core-boot)'


Use the real disk here and not the lvm VG.

grub-setup -r '(fatoftheland-main)' '(hd0)'.


This works for me.

Kind regards,
Michael






_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to