Comments (5)
Appearently mkinitcpio runtime hooks are not triggered in systemd-based initramfs images:
Note: Runtime hooks are only used by busybox init. systemd hook triggers a systemd based init, which does not run any runtime hooks but uses systemd units instead.
Can you try building my work in progress branch sd-plymouth-tpm2-totp
? It includes a systemd service as an alternative to the BusyBox runtime hook to start plymouth-tpm2-totp
and should hopefully work out of the box after replacing plymouth-tpm2-totp
with sd-plymouth-tpm2-totp
in the HOOKS
variable.
from tpm2-totp.
If you are using Plymouth, you need to use the plymouth-tpm2-totp
mkinitcpio hook instead of tpm2-totp
. (This hook is not part of the Arch Linux package because Plymouth is not officially supported there, so you need to install tpm2-totp-git
from the AUR or compile from source instead.)
from tpm2-totp.
thx for the Info. I have build from source and now when i change my Hooks to:
HOOKS=(base udev consolefont plymouth plymouth-tpm2-totp autodetect modconf block filesystems keyboard fsck)
i get the generated OTP displayed in Plymouth
But if i use this HOOKS line
HOOKS=(systemd consolefont sd-plymouth plymouth-tpm2-totp autodetect modconf block filesystems keyboard fsck)
nothing happens. i think the /usr/bin/plymouth-tpm2-totp is not started because i dont use udev (rule?)
from tpm2-totp.
as you said works out of the box! Thx
from tpm2-totp.
Great, thank you for testing! I have submitted my branch as #75, so this feature will make it to the tpm2-totp-git AUR package soon.
from tpm2-totp.
Related Issues (20)
- TOTP code not shown by Debian 12 running cryptroot-unlock
- Use tpm2-totp with pam?
- Typo
- [Feature] Add available HOOKS to man page
- Add man.3 page
- Compilation error due to variable used uninitialized HOT 3
- More automagic
- Add initramfs-tools hooks HOT 2
- Bugfix-release with fixed dependencies HOT 1
- Add ability to seal against user-specified PCR values HOT 12
- User-friendly error messages
- udev error in bootlog when using dracut + plymouth HOT 3
- Release GPG Key HOT 3
- no TOTP displayed in systemd-based initramfs HOT 7
- Implement `status` sub-command HOT 1
- Password should never be passed as an argument HOT 1
- Refine CLI interface semantics HOT 1
- documented default PCRs don't match actual default PCRs HOT 5
- Working with systemd-cryptsetup? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpm2-totp.