[Bug 1565950] Re: Grub 2 fails to boot a kernel on a luks encrypted volume with Secure Boot enabled
Nazar Mokrynskyi
nazar at mokrynskyi.com
Thu Mar 2 17:28:14 UTC 2017
For me the issue is even deeper.
I'm not striving for Secure Boot, just for UEFI with encrypted `/boot`.
However, even when `/boot/grub/grub.cfg` contains lines with `insmod
luks` and `insmod cryptodisk` (I've tried even both
`GRUB_ENABLE_CRYPTODISK=y` and `GRUB_PRELOAD_MODULES="luks cryptodisk"`
at the same time), resulting `/boot/efi/EFI/ubuntu/grubx64.efi` (on ESP
partition, of course) doesn't have those modules embedded and thus falls
back to console without possibility to actually boot the system.
I feel like modules bundling is broken, since, for instance, BTRFS
driver is always bundled independently from whether I use BTRFS or ext4.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1565950
Title:
Grub 2 fails to boot a kernel on a luks encrypted volume with Secure
Boot enabled
Status in grub2 package in Ubuntu:
Confirmed
Bug description:
Booting in UEFI Secure Boot requires that all code loaded up to and
including the OS kernel be signed. This includes all grub modules.
This is accomplished by including selected modules in a single signed
binary. However, the modules required for grub to use an encrypted
volume have been omitted from the binary package and therefore Ubuntu
cannot boot from an encrypted volume with Secure Boot enabled. This
can be corrected as follows.
The debian/build-efi-images file needs to have lines 136-140 changed from:
GRUB_MODULES="$CD_MODULES
lvm
mdraid09
mdraid1x
"
to:
GRUB_MODULES="$CD_MODULES
cryptodisk
gcry_arcfour
gcry_blowfish
gcry_camellia
gcry_cast5
gcry_crc
gcry_des
gcry_dsa
gcry_idea
gcry_md4
gcry_md5
gcry_rfc2268
gcry_rijndael
gcry_rmd160
gcry_rsa
gcry_seed
gcry_serpent
gcry_sha1
gcry_sha256
gcry_sha512
gcry_tiger
gcry_twofish
gcry_whirlpool
luks
lvm
mdraid09
mdraid1x
"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1565950/+subscriptions
More information about the foundations-bugs
mailing list