[Bug 1425681] Re: grub2 does not install on encrypted lvm

sudodus nio.wiklund at gmail.com
Fri Feb 27 16:55:06 UTC 2015


I think this bug might affect installations in UEFI mode, where grub2
replaces syslinux (I have not tested that case). But it does not affect
the i386 (32-bit) versions of the Lubuntu iso files.

I could install a Lubuntu system with encrypted LVM  and encrypted home
according to the previous test-case for alternate Lubuntu Vivid beta 1
i386. I could also do it with the corresponding desktop installer.

-o-

I tested the Lubuntu Vivid beta 1 *desktop* ISO file corresponding to
the testcase with LVM encrypted disk and encrypted home. It is also
reported in the qa-tracker.

The computer is an hp Probook 6450b laptop with Intel i5 cpu:

http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c02218879

Trying to use the whole drive with encrypted LVM and encrypted home, It
complained about existing swap (which is zram), so I had to turn it off
with

sudo swapoff -a

and restart Ubiquity. It complained that partman failed:

ubi-partman failed with exit code 141. Further information may be found
in /var/log/syslog. Do you want to try ...

The installled system worked, but I had the same error as with the
alternate iso file: there is no swap.

I wiped the drive (wrote zeros to the first megabyte using mkusb (dd))
and made an MSDOS partition table using gparted.

Then I tried again with Ubiquity, and succeeded: The installed system
works, and there is swap. See the attached file.

-o-

The *alternate* iso does not use zram, so it was enough to wipe [the
first megabyte of] the internal drive and create a new partition table.
I did that before booting into the alternate iso file, but it could be
added into the alternate installer.

Then select No (when asked to install grub, the bootloader) and enter
/dev/sda manually ... and success

I have a good Lubuntu installed system with swap and everything works
(except maybe the Lubuntu Software Center, which I have never used).

*Summary*

This Lubuntu Vivid 32-bit alternate iso file is in rather good shape. With a little bit of help it can install a good encrypted LVM and
encrypted home system. It should be possible to make the installer wipe the first megabyte or the whole drive (a user choice), and then create an MSDOS partition table before starting the advanced partitioning.


** Attachment added: "cli-output.txt"
   https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1425681/+attachment/4329544/+files/cli-output.txt

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1425681

Title:
  grub2 does not install on encrypted lvm

Status in debian-installer package in Ubuntu:
  Confirmed

Bug description:
  To reproduce boot a lubuntu alternate amd64 and select guided
  partioning to set up entire encryped lvm. The install will continue
  until you install grub and then grub will not install on the encrpted
  lvm

  The deb on the altenrate installer is 
  /grub2-common_2.02~beta2-21_amd64.deb 

  This is a vivid amd 64 alternate relase but fails with altenrate
  installer so this how to get info

  I expected grub2 to install instead it did not for the encrpytion.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1425681/+subscriptions



More information about the foundations-bugs mailing list