]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-tools: Make sure opensc module is registered with p11-kit
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Mon, 30 Jun 2025 21:38:01 +0000 (23:38 +0200)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Tue, 1 Jul 2025 20:47:13 +0000 (22:47 +0200)
Otherwise openssl will fail to load keys off a yubikey when using
pkcs11-provider. For more discussion and why this isn't the default
everywhere, see https://gitlab.archlinux.org/archlinux/packaging/packages/opensc/-/issues/2.

mkosi/resources/mkosi-tools/mkosi.prepare [new file with mode: 0755]

diff --git a/mkosi/resources/mkosi-tools/mkosi.prepare b/mkosi/resources/mkosi-tools/mkosi.prepare
new file mode 100755 (executable)
index 0000000..633a7cb
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -e
+
+echo "module: opensc-pkcs11.so" >"$BUILDROOT/usr/share/p11-kit/modules/opensc.module"