-
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
Systemd mkinitcpio hook support #14
Comments
I didn't test systemd specific hooks for mkinitcpio but I think they aren't compatible with |
Yes, I was migrating to I'm at the moment keeping two configurations and using a separate LUKS key slot for loading with |
I've done some testing on this end,
Adapting it to sd-encrypt still fails, since the script handling and extra binaries added in the ykfde hook don't seem to work with systemd out of box. I have found a different project that adapts yubikey to systemd init, but it appears to use an entirely seperate ykfde hook and it still requires the sd-encrypt hook. That said, I think the while ykfde-hook might need a minor rewrite, |
"Hijacked" is a strange choice of wording.
In other words - it only adds everything which is needed for it to work 😄. However I think that you missed the runtime part of the hook which is totally different.
If that was only question of copy-pasting ykfde changes to sd-encrypt hook it would be already done. Arch itself recommends using non-systemd initramfs with
Yes, I'm aware of the project you linked 😄 . Unfortunately it's coded in C, not in shell scripting as we do.
It doesn't really matter if it's deprecated. It was used for different purpose in Arch and still fits for our usecase. When Arch decide to delete it we can bring it back in this repo. |
Apologies if my phrasing might've come off as hostile,
I was merely implying that it operates on the foundations of the encrypt hook, rather than being its own standalone hook. The contents that define the ykfde part of the hook are simply minimalistic.
Yeah, I never expected my hack-job modifications to work out of the gate, I was merely interested in what would happen.
I haven't looked into what ykfde uses in shutdown hook, could you point it out to me? |
What is the base for this assumptions? Let me quote Arch Wiki maintainer from January this year: There's no need to use systemd hooks unless you have a problem with the busybox hooks, or need functionality that busybox hooks don't provide . There wasn't any activity in Arch's mkinitcpio project this year.
The shutdown hook copies initramfs content to |
I think what would solve this issue of no compatibility with systemd-boot (which I still experience) is building on top of the I would be willing to help implement that if you would be kind enough to point me to the right places in the code that would need to be reworked to add that functionality. |
I tried to enable +1 for having |
+1 for having ykfde ported to systemd. |
If we're using
systemd-boot
, should theudev
andshutdown
hooks be replaced withsystemd
andsd-shutdown
?The text was updated successfully, but these errors were encountered: