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

Doesn't work with full disk encryption #3

Closed
veggiedefender opened this issue Dec 29, 2017 · 4 comments
Closed

Doesn't work with full disk encryption #3

veggiedefender opened this issue Dec 29, 2017 · 4 comments

Comments

@veggiedefender
Copy link

Expected behavior:

On boot, the device encrypted with LUKS should prompt for the decryption key before asking me if I want to load the root filesystem into RAM.

What happens

Everything sort of messes up and then I'm tossed into emergency mode, since the root filesystem hasn't been decrypted yet

How to fix

I solved this by moving the ramroot hook after the encrypt hook in /etc/mkinitcpio.conf and rebuilding the initramfs. Maybe add some logic for detecting if encrypt is loaded, and insert ramroot after that.

@arcmags
Copy link
Owner

arcmags commented Jan 17, 2018

Looks good, and thanks for testing with LUKS. I'm out for the holidays but will be back and fix this within a few days.

@piluex
Copy link

piluex commented Jan 20, 2018

Hello, first of all great work and thanks for making it public. I've just stumbled uppon exactly the same issue and fixed it the same way. The only difference is that I'm not using LUKS but plain dmcrypt.

I've created this pull request for a very simple fix. I'm no scripting expert so please review it before accepting it.
https://github.com/arcmags/ramroot/pull/4/files
Enjoy your holidays.

@arcmags
Copy link
Owner

arcmags commented Jan 31, 2018

commit 6cf6877

@arcmags
Copy link
Owner

arcmags commented Jan 31, 2018

This latest commit should solve this issue. Logic was added to add the ramroot hook after any encrypt hook in /etc/mkinitcpi.conf as suggested.

Also the latest version is in the AUR.

@arcmags arcmags closed this as completed Jan 31, 2018
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

3 participants