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

Error message with multiple crypt root devices: Could not find the lv_root_2 in /dev/Volume00/lv_root_2 #44

Open
sebasmannem opened this issue Feb 18, 2017 · 0 comments

Comments

@sebasmannem
Copy link

sebasmannem commented Feb 18, 2017

When used with multiple encrypted root disks booting results in error message:

Could not find the lv_root_2 in /dev/Volume00/lv_root_2.

Dropping to shell and entering:

cryptsetup luksOpen -d /mnt/key/key /dev/Volume00/lv_root_2 lv_root_2

Does open the disk correctly and after that booting finishes correctly.
I added some good_msg lines for debugging and found that, for every root device a new -d option would be added to cryptsetup_opts, resulting in a cryptsetup Luksopen command like:

cryptsetup luksOpen -d /mnt/key/key -d /mnt/key/key /dev/Volume00/lv_root_2 lv_root_2

And that fails, since cryptsetup only supports one -d option.
The patch below changes _open_luks() in defaults/initrd.d/00-crypt.sh, by clearing cryptsetup_opts for each device which fixes this issue.
genkernel-next.txt

alinefr pushed a commit to alinefr/genkernel-next that referenced this issue Feb 28, 2017
alinefr pushed a commit to alinefr/genkernel-next that referenced this issue Feb 28, 2017
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

No branches or pull requests

1 participant