-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix hook YKFDE_LUKS_OPTIONS, add YKFDE_LUKS_HEADER #65
base: master
Are you sure you want to change the base?
Conversation
…ike "--header=/dev/sdb --allow-discards" Add those options for luksResume also
…don't know `--allow-discards` parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll prefer to drop YKFDE_LUKS_OPTIONS
change (quotes removal) if it's no longer needed for header support. I don't see the need for passing more options there especially if we don't support it while reading cmdline.
Hi @Vincent43, thanks for the review. I would prefer to keep it without quote, this is valid dash syntax that will allow now or i the futur or for specific case the pass several parameters. I mean, |
…r YKFDE_LUKS_OPTIONS.
What do you think of integrating this fresh patch in this hook to handle cmdline? I try it without yubikey with encrypt-sd and works well, https://github.com/maximbaz/pkgbuilds/tree/master/mkinitcpio-encrypt-detached-header https://github.com/maximbaz/pkgbuilds/blob/master/mkinitcpio-encrypt-detached-header/support-detached-header.patch |
Unquoted variables are against secure shell coding principles which us why I'm trying to avoid them. As we use this option in both bash and ash then safe alternatives like arrays are limited
It was exposed as alternative for reading cmdline which also may be used in ykfde-open. In practice it always was only about
Maybe we shouldn't introduce it but if it's already there then I prefer to keep it in case someone is using it. I think I will change description of it to make clear of its purpose.
Yes, this may be better option than exposing |
Ok :-) I see the point about actual options. |
I believe reading cmdline is superior solution so if we're going to add it then it's not worth exposing |
Hi guys, will do this asap. |
YKFDE_LUKS_OPTIONS
like"--param1=value1 --allow-discards"
.YKFDE_LUKS_HEADER
option that permit to get it working on boot and on resume.