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

Support bcachefs encrypted root unlocking #2646

Open
ghost opened this issue Apr 7, 2024 · 0 comments
Open

Support bcachefs encrypted root unlocking #2646

ghost opened this issue Apr 7, 2024 · 0 comments
Labels
enhancement Issue adding new functionality

Comments

@ghost
Copy link

ghost commented Apr 7, 2024

Just like how "crypt" module opens luks encrypted root via cryptsetup. It would be great if dracut could unlock bcachefs encrypted partitions a similar way. In userspace the way to unlock a bcachefs encrypted drive and mount it is:

bcachefs unlock /dev/sdaX
# type password
mount /dev/sdaX /mountpoint

However, it is a bit different on systemd for some reason where you need to specify a -k value. And from my testing in fedora 40 beta (my current system uses openrc) I had this issue where I had to type the password again when mounting it (could be a bug with fedora 40 beta).

bcachefs unlock -k session /dev/sdaX
# type password
bcachefs mount /dev/sdaX /mountpoint
# type password again

There is more of an explanation on their website https://bcachefs.org/Encryption/.

@ghost ghost added the enhancement Issue adding new functionality label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue adding new functionality
Projects
None yet
Development

No branches or pull requests

0 participants