Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for detached headers for crypto root #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gentoomaniac
Copy link

I basically copied the code for the key and adapted it bit to do the headers.
Working fine on my gentoo box.
Looking something like this then in default/grub
GRUB_CMDLINE_LINUX="crypt_roots=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S2R6NX0J363411N-part1 root_header=/luks-header root_headerdev=UUID=cadca53c-3a05-4ed2-84fe-f2d1d03e812e root_trim=yes dolvm quiet spalsh"

If used it will need more testing as I only have my one box where I'm running it.

Feel free to use or discard as you feel.
If you have, feedback would be appreciated

@@ -222,8 +296,8 @@ _open_luks() {
# At this point, keyfile or not, we're ready!
local ply_cmd="${gpg_ply_cmd}${CRYPTSETUP_BIN}"
local tty_cmd="${gpg_tty_cmd}${CRYPTSETUP_BIN}"
ply_cmd="${ply_cmd} ${cryptsetup_opts} luksOpen ${luks_device} ${luks_dev_name}"
tty_cmd="${tty_cmd} ${cryptsetup_opts} luksOpen ${luks_device} ${luks_dev_name}"
ply_cmd="${ply_cmd} ${cryptsetup_opts} luksOpen ${luks_device} ${luks_dev_name}${header_opts}"
Copy link
Member

@mudler mudler Jan 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor note: afaics there isn't a default value for header_opts (that would be empty one anyway).

Overall looks good to me

@AamerShareef
Copy link

Hi,
Thank you for this,
I am just curious if these commits been merged in the main branch?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants