Fix CCID bundle setup: symlink entire bundle directory instead of contents
This commit is contained in:
@@ -16,9 +16,10 @@
|
|||||||
# CCID driver for smartcard access (required for YubiKey CCID functionality)
|
# CCID driver for smartcard access (required for YubiKey CCID functionality)
|
||||||
# Set up the PC/SC drivers directory with CCID driver bundle
|
# Set up the PC/SC drivers directory with CCID driver bundle
|
||||||
system.activationScripts.pcscdSetup = ''
|
system.activationScripts.pcscdSetup = ''
|
||||||
mkdir -p /var/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux
|
mkdir -p /var/lib/pcsc/drivers
|
||||||
# Symlink CCID driver bundle
|
# Symlink the entire CCID bundle (or create it if it doesn't exist)
|
||||||
ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle"/* /var/lib/pcsc/drivers/ifd-ccid.bundle/ 2>/dev/null || true
|
rm -rf /var/lib/pcsc/drivers/ifd-ccid.bundle 2>/dev/null || true
|
||||||
|
ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle" /var/lib/pcsc/drivers/ifd-ccid.bundle
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# YubiKey management tools
|
# YubiKey management tools
|
||||||
|
|||||||
Reference in New Issue
Block a user