-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add passphrase_file to mount options (recreated) #266
base: master
Are you sure you want to change the base?
Conversation
Biggest bonus is the simplification of the if-else-if-else flow. Instead we look for the Ok(()) returned from key::unlock_master_key_using_pasphrase_file and return early if we find it. Signed-off-by: Roland Vet <[email protected]>
…e_file Signed-off-by: Roland Vet <[email protected]>
Hi donmor, Thank you for this work. Could you update your commit messages to be more descriptive? A commit message 'update' doesn't give any insight into what actually happened in the commit. In addition, Kent requires/strongly prefers that you sign your commits. I've created a PR on your fork that does some refactoring, let me know what you think. |
I see... But the non-latest commits is not likely to be editable(-ι_- ) |
You can perform a interactive rebase to edit the commit message; followed by a force push. |
Add -o passphrase_file= mount option. This allows unlocking the volume in fstab.
Update help message, adding descriptions for -o passphrase_file mounting option.
Do if-else simplification in another way, making less changes to the original
formatting
Refactor master key unlocking
Got it. Merged ur PR with some modifications. |
I considered the solution you are presenting now; The solution I presented reduces the complexity, reduces the exaggerating amount of indent levels. Further the current state of the branch does not build.
I'll create a alternative PR here. PS. |
My bad (-ι_- ) It must be me who do drag'n drop without pressing Ctrl, leading to the missing |
fix missing param
Solve conflicts
Modified a few lines to resolve conflicts. |
Fix incorrect args
Because Kent has indicated he does not want this functionality included directly; I found an alternative way of decrypting the bcachefs array and mounting it at boot: https://gist.github.com/RlndVt/7055be264c9492064d3523c8e74ea0a3 |
Recreated #253 as
cmd_mount.rs
is renamed.