Skip to content

Adapting script for multiple distro compatibility

Created by: LucaZulberti

I have created this pull request to propose an improvement of the script to make it compatible across different distros. The final goal could be the creation of a ".deb" package.

I've made it just as starting point, do not accept the changes.

Current status:

  • I have to insert my Yubikey 4 AFTER the system is booted to make it works (I don't know why).
  • If I press Ctrl+Alt+1 at Smartcard PIN prompt, I can see several errors in Yubikey initialization. However, the decryption is successful, and the LUKS partition is unlocked.
  • Tested on Ubuntu 18.10
  • Need to do tests on Debian system
  • I have encrypted my "cryptkey.gpg" file only with the asymmetric method, and I have removed the part of the question which ask for the static passphrase. Perhaps it can be made configurable.

Errors (I don't know if they are related to the hook script):

00000000 ifdhandler.c:150:CreateChannelByNameOrChannel() failed
00000040 readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0407:libudev:0:/dev/bus/usb/002/002)
00000005 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 OTP+U2F+CCID init failed.

I'm not an expert, up to now, I really appreciate collaborations and corrections to the code.

Thank you for your scripts, I like this type of tool.

Merge request reports

Loading