Git Product home page Git Product logo

Comments (5)

diabonas avatar diabonas commented on June 25, 2024 1

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.

diabonas avatar diabonas commented on June 25, 2024

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.

bigfreak85 avatar bigfreak85 commented on June 25, 2024

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.

bigfreak85 avatar bigfreak85 commented on June 25, 2024

as you said works out of the box! Thx

from tpm2-totp.

diabonas avatar diabonas commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.