You are not logged in.

#1 2014-03-07 14:34:23

simonzack
Member
Registered: 2014-01-18
Posts: 22

[Solved] How to boot using rEFind and lvm

I migrated to lvm today, and can successfully boot using grub using systemrescuecd, so my lvm install shouldn't have any problems.

But when I boot using rEFind, I keep getting the following error screen:
rEFind boot screen

I've read the arch wiki on refind dozens of times, and here's the part of my refind configuration (in /boot/efi/EFI/refind/refind.conf):

		menuentry "Arch Linux" {
		    icon     EFI/refind/icons/os_linux.icns
		    volume   "/"
		    loader   /boot/vmlinuz-linux
		    initrd   /boot/initramfs-linux.img
			options  "dolvm root=/dev/mapper/arch_data-arch_root ro"
		}

I have no idea what to do now, any help greatly appreciated!

Last edited by simonzack (2014-03-08 02:08:08)

Offline

#2 2014-03-07 16:40:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] How to boot using rEFind and lvm

Large pictures should be hosted elsewhere and linked to from the thread.

But besides the kernel command line, the bootloader or boot manager has almost nothing to do with the existence of LVM.  Its job is merely to load the kernel and initramfs, then hand control over to the kernel.  So it is within the initramfs that should be handling things.  The lvm hook (or sd-lvm if using the systemd hook) is what is doing the work there.

Also, I don't know what yahoo put that dolvm note in the wiki, but that is not even a valid kernel command line parameter for mkinitcpio.

Offline

#3 2014-03-08 02:10:30

simonzack
Member
Registered: 2014-01-18
Posts: 22

Re: [Solved] How to boot using rEFind and lvm

I managed to solve this in the end, should have used the EFI path instead of the /boot path to specify the loader, as /boot is on the lvm partition which isn't accessible to refind. And you're right, dolvm isn't needed.

Last edited by simonzack (2014-03-08 02:11:17)

Offline

#4 2014-03-08 03:27:26

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] How to boot using rEFind and lvm

I think that there is only one bootloader that can handle the /boot on LVM and that is grub2.  But then you're stuck with... grub2.

Offline

#5 2014-03-15 20:07:05

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [Solved] How to boot using rEFind and lvm

FWIW, Gentoo uses "dolvm" to activate LVM support in its initrd. If that's in the Arch wiki, I have no idea how it got there.

Offline

Board footer

Powered by FluxBB