Fix hook YKFDE_LUKS_OPTIONS, add YKFDE_LUKS_HEADER#65
Fix hook YKFDE_LUKS_OPTIONS, add YKFDE_LUKS_HEADER#65cyrinux wants to merge 3 commits intoagherzan:masterfrom
Conversation
…ike "--header=/dev/sdb --allow-discards" Add those options for luksResume also
…don't know `--allow-discards` parameter.
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_OPTIONSlike"--param1=value1 --allow-discards".YKFDE_LUKS_HEADERoption that permit to get it working on boot and on resume.