Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing GRUB for EFI, LUKS on LVM root partition, systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fowlslegs
n00b
n00b


Joined: 09 Jan 2014
Posts: 3

PostPosted: Sun Jan 12, 2014 6:10 pm    Post subject: Installing GRUB for EFI, LUKS on LVM root partition, systemd Reply with quote

I have been having some problems generating a grub.cfg that works for my install. I am running grub-2.02_beta2 and trying to boot from an encrypted root (LUKS on LVM) with systemd. I built grub with GRUB_PLATFORMS=x86_64-efi and USE=mount support. My current setup asks for the encryption password to the root, then loads the GRUB menu, begins to boot the kernel, then tells me it can't find /dev/mapper/root. I have tried dropping into the ash shell and using `# cryptsetup luksOpen /dev/lvm/root/ root` then exiting and booting from /dev/mapper/root, but partway through booting I get stuck on an error that /dev/sdb1 (my unencrypted EFI part) was unmounted incorrectly, may be corrupted, and I should run fsck. I installed grub with `# grub2-install --target=x86_64-efi --bootloader-id=grub`, but I earlier tried it with a number of modules, which used to be listed on the GRUB2 wiki for booting from a LUKS partition--"configfile linux crypto search_fs_uuid luks lvm"--however, that also didn't work. I was very careful to build in support for LUKS, LVM, systemd, and EFI boot into my kernel, which I generated using `# genkernel --symlink --save-config --no-mrproper --luks --lvm --menuconfig all`. Let me know if I can provide you with anymore information and I greatly appreciate any help.

Relevant files

/etc/fstab http://paste.debian.net/75683
/etc/default/grub http://paste.debian.net/75681
/boot/grub/grub.cfg http://paste.debian.net/75791/
Back to top
View user's profile Send private message
fowlslegs
n00b
n00b


Joined: 09 Jan 2014
Posts: 3

PostPosted: Wed Jan 15, 2014 2:43 pm    Post subject: Reply with quote

Still trying to figure this out...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Thu Jan 16, 2014 5:34 am    Post subject: Reply with quote

your pastebin failed
if single booting suggest UEFI stub kernel, if multibooting suggest stub kernel with rEFInd, and forget grub2
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum