[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM



On Wed, Dec 02, 2015 at 02:15:16PM -0500, Lennart Sorensen wrote:
> On Wed, Dec 02, 2015 at 09:30:05AM -0800, Carl Myers wrote:
> > I know this is a bug tracker, not a support forum, but given this is a known bug, if it isn't going to be fixed soon, could someone point me to a resource for how to fix a machine in this state?
> > 
> > I presume the instructions would look something like this:
> > 1. boot with live CD
> > 2. unlock encrypted volume, mount to /media/root/ and /media/root/home
> 
> Of course you do have to mount /media/root/boot and /media/root/boot/efi
> as well.  After all with encrypted root, you have a seperate boot
> partition that is unencrypted for loading the kernel and initrd, and
> since it is a UEFI machine, you have a vfat partition to sture the efi
> boot loader files too.
Yes, I forgot to say so, but I mounted those pieces too.

> 
> > 3. bind mount dev, proc, and sys
> > 4. chroot into /media/root
> > 5. <do something to convince it to not be broken
> > 6. grub-install /dev/nvme0
> > 7. reboot
> > 
> > I'm having trouble figureing out step 5, I've done the rest with success =|
> 
> I suspect step 5 might be 'do nothing'.  Step 6 is probably all you
> need and the part grub-installer fails to do because it doesn't think
> /dev/nvme* is a valid device name.
that was my hope, but when I did that "nothing", things still didnt' work, but
the grub-install command said it ran successfully.

I examined the /boot/initrd-* file that was produced, extracted it, and noted it
did not contain /sbin/cryptsetup, which seemed wrong.  Not sure what other
information I can provide to help figure out what is wrong though... it sounds
like you think this might still be a bug in grub-install ?  I'd be glad to run a
snapshot of grub-install or poke around in there if you want to give me some
pointers (I am  a fairly experienced software dev, but haven't done a lot of
C/C++ in a while)

Thanks!

> 
> -- 
> Len Sorensen

-- 
Carl Myers 
PGP Key ID 3537595B
PGP Key fingerprint 9365 0FAF 721B 992A 0A20  1E0D C795 2955 3537 595B

Attachment: signature.asc
Description: Digital signature


Reply to: