Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
On Wed, Dec 02, 2015 at 04:44:46PM +, Ben Hutchings wrote: > This is a known bug. > > Ben. > > -- > Ben Hutchings > Humans are not rational beings; they are rationalising beings. 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 3. bind mount dev, proc, and sys 4. chroot into /media/root 5. signature.asc Description: Digital signature
Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
Control: reassign -1 grub-installer Control: forcemerge 806164 -1 This is a known bug. Ben. -- Ben Hutchings Humans are not rational beings; they are rationalising beings. signature.asc Description: This is a digitally signed message part
Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
Steve, Thanks for following up so quickly! Yes, the installer said UEFI on the splash screen, and the /sys/firmware/efi directory existed. I was most successful booting from a USB CD drive, which I selected from the EFI bios to start the boot. Thanks! -Carl On Wed, Dec 02, 2015 at 01:55:37PM +, Steve McIntyre wrote: > Return-Path: <st...@einval.com> > X-Original-To: cmy...@cmyers.org > Delivered-To: cmy...@cmyers.org > Received: by mail.cmyers.org (Postfix, from userid 114) id 708AF22D13; Wed, > 2 Dec 2015 06:25:24 -0800 (PST) > X-Greylist: delayed 1743 seconds by postgrey-1.35 at debian; Wed, 02 Dec > 2015 06:25:22 PST > Received: from cheddar.halon.org.uk (cheddar.halon.org.uk [93.93.131.118]) > by mail.cmyers.org (Postfix) with ESMTPS id 4A46122D0C for > <cmy...@cmyers.org>; Wed, 2 Dec 2015 06:25:22 -0800 (PST) > Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.80) > (envelope-from <st...@einval.com>) id 1a47tI-00069N-IO; Wed, 02 Dec 2015 > 13:56:16 + > Received: from steve by tack.local with local (Exim 4.84) (envelope-from > <st...@einval.com>) id 1a47sf-0005Dh-Sy; Wed, 02 Dec 2015 13:55:37 + > Date: Wed, 2 Dec 2015 13:55:37 + > From: Steve McIntyre <st...@einval.com> > To: Carl Myers <cmy...@cmyers.org>, 806...@bugs.debian.org > Subject: Re: Bug#806849: debian-installer: d-i fails to install grub2 > correctly for efi system using encrypted LVM > Message-ID: <20151202135537.gb28...@einval.com> > References: <20151202065120.19939.685.reportbug@debian> > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > In-Reply-To: <20151202065120.19939.685.reportbug@debian> > X-attached: unknown > User-Agent: Mutt/1.5.23 (2014-03-12) > > On Tue, Dec 01, 2015 at 10:51:20PM -0800, Carl Myers wrote: > >Package: debian-installer > >Version: stretch alpha 4 > >Severity: important > >Tags: d-i > > > >Dear Maintainer, > > Hi Carl, > > >I have a new System76 Oryx Pro laptop using efi boot. Ubuntu installs > >successfully but I can't get debian to install using encrypted LVM. > > > >The laptop has an nvme device which requires efi boot so I can't just disable > >it. Here are my repro steps: > > > >1. Boot using netinst (tried both stable and testing, stable doesn't work at > >all I think due to efi?) > >2. Performed normal install (tried both text and gui) > >3. Included proprietary firmware for wifi from usb key when prompted > >4. selected encrypted LVM with separate home partition, changed root > >partition > >to 20GB and made some other lvm adjustments > >5. proceeded to install base system successfully > >6. when it comes time to install grub, it fails. no better error message > >provided, nothing in /var/logs either > > Silly question: are you sure that the installer booted in UEFI mode? > What you're describing sounds like it could be a BIOS-mode > installation instead. Did the installer splash screen mention UEFI? > > -- > Steve McIntyre, Cambridge, UK.st...@einval.com > "You can't barbecue lettuce!" -- Ellie Crane > -- Carl Myers PGP Key ID 3537595B PGP Key fingerprint 9365 0FAF 721B 992A 0A20 1E0D C795 2955 3537 595B signature.asc Description: Digital signature
Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
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. > 3. bind mount dev, proc, and sys > 4. chroot into /media/root > 5. 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. -- Len Sorensen
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. > 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 signature.asc Description: Digital signature
Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
On Tue, Dec 01, 2015 at 10:51:20PM -0800, Carl Myers wrote: >Package: debian-installer >Version: stretch alpha 4 >Severity: important >Tags: d-i > >Dear Maintainer, Hi Carl, >I have a new System76 Oryx Pro laptop using efi boot. Ubuntu installs >successfully but I can't get debian to install using encrypted LVM. > >The laptop has an nvme device which requires efi boot so I can't just disable >it. Here are my repro steps: > >1. Boot using netinst (tried both stable and testing, stable doesn't work at >all I think due to efi?) >2. Performed normal install (tried both text and gui) >3. Included proprietary firmware for wifi from usb key when prompted >4. selected encrypted LVM with separate home partition, changed root partition >to 20GB and made some other lvm adjustments >5. proceeded to install base system successfully >6. when it comes time to install grub, it fails. no better error message >provided, nothing in /var/logs either Silly question: are you sure that the installer booted in UEFI mode? What you're describing sounds like it could be a BIOS-mode installation instead. Did the installer splash screen mention UEFI? -- Steve McIntyre, Cambridge, UK.st...@einval.com "You can't barbecue lettuce!" -- Ellie Crane
Bug#806849: debian-installer: d-i fails to install grub2 correctly for efi system using encrypted LVM
Package: debian-installer Version: stretch alpha 4 Severity: important Tags: d-i Dear Maintainer, I have a new System76 Oryx Pro laptop using efi boot. Ubuntu installs successfully but I can't get debian to install using encrypted LVM. The laptop has an nvme device which requires efi boot so I can't just disable it. Here are my repro steps: 1. Boot using netinst (tried both stable and testing, stable doesn't work at all I think due to efi?) 2. Performed normal install (tried both text and gui) 3. Included proprietary firmware for wifi from usb key when prompted 4. selected encrypted LVM with separate home partition, changed root partition to 20GB and made some other lvm adjustments 5. proceeded to install base system successfully 6. when it comes time to install grub, it fails. no better error message provided, nothing in /var/logs either The laptop came with working ubuntu on it, and I was able to boot from an ubuntu live CD. I was able to chroot into the installed system from here and everything looked right, but I still haven't figured out the right incantation of grub to get it to install so it will unlock my encrypted drive (right now, it does boot off the nvme device but drops me to a grub prompt). Short of becoming a grub wizard, the best way to get my system the way I want it is probaly to fix the installer =| if there is anything I can do to provide extra information, please do not hesitate to contact me. I also hang out on freenode as cmyers. Thanks! -- System Information: Debian Release: 8.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.1.5-x86_64-linode61 (SMP w/3 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)