Package Details: grub-luks-keyfile-git 2:2.05-1

Git Clone URL: (read-only, click to copy)
Package Base: grub-luks-keyfile-git
Description: GNU GRand Unified Bootloader (2)
Upstream URL:
Licenses: GPL3
Conflicts: grub-bios, grub-common, grub-efi-x86_64, grub-emu, grub-legacy
Provides: grub-bios, grub-common, grub-efi-x86_64, grub-emu
Replaces: grub-bios, grub-common, grub-efi-x86_64, grub-emu
Submitter: mxfm
Maintainer: mxfm
Last Packager: mxfm
Votes: 0
Popularity: 0.000000
First Submitted: 2021-01-16 16:36
Last Updated: 2021-01-16 16:36

Dependencies (23)

Required by (2)

Sources (13)

Latest Comments

mxfm commented on 2021-03-06 06:26

@gamezelda Thanks for the feedback. It is good to know, that someone is also interested in these patches.

Yes, I followed the easy way and discarded some changes because there was a mess. I will try your patch #4. Does it include all upstream changes?

Btw, did you tried to compile grub-extras in PKGBUILD? It is a separate repo which contains some tools moved outside the grub core repo. Grub developers told that they are against including patch #4 (plain dm-crypt) but are fine, if it is included into extras as a separate module.

In January, when I was updating these patches I also planned to rewrite the patch #4 into a module to submit it to grub-extras. Including in the repo will greatly simplify keeping the patches up to date, because the patch #4 is the most time consuming. Unfortunately, for some reason grub autoconf ignores "export GRUB_CONTRIB" command in PKGBUILD, and I didn't have more time to fix it.

EDIT: It seems the problem was in bootstrap script. Recently grub compilation steps changed. Now is called by and is run in _prepare, before exporting GRUB_CONTRIB variable in _build_grub-common_and_bios().

gamezelda commented on 2021-03-05 20:13

I just recently finished rebasing the patches myself for the grub 2:2.04.r340.g8fcfd1e0f-1 which recently landed on the testing repo, and which includes some quite tricky parts to merge, and after I finished, I realized someone may have already done most of the job - facepalm.

However I found something of note by comparing your patches to mine, which is that in the original 4th patch ( ), there's a chunk where a part of grub-core/disk/luks.c:configure_ciphers is refactored into a new function grub-core/disk/cryptodisk.c:grub_cryptodisk_create.

At some point there were some other upstream refactors to configure_ciphers, which causes a mess which is quite tricky to merge. It looks like you discarded the deletion from configure_ciphers and kept the old version of the code from grub_cryptodisk_create, which causes the patches to miss some upstream changes like those (however nothing looks too important):

FWIW this is my rebased version of the patches, where I tried to pull the changes from configure_ciphers into grub_cryptodisk_create as best as I could: