···33# To re-generate a bundle for another specific version without changing the standard setup, you can:
44# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
66-VERSION ?= 0.6.42
66+VERSION ?= 0.6.43
7788# CHANNELS define the bundle channels used in the bundle.
99# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
+16-8
cmd/test/main.go
···5353 // Get library path from environment or use default
5454 libraryPath := os.Getenv("PKCS11_LIBRARY")
5555 if libraryPath == "" {
5656- // Try common locations
5757- if _, err := os.Stat("/usr/lib/pkcs11/opensc-pkcs11.so"); err == nil {
5858- libraryPath = "/usr/lib/pkcs11/opensc-pkcs11.so" // Production container
5959- } else if _, err := os.Stat("/usr/lib64/pkcs11/opensc-pkcs11.so"); err == nil {
6060- libraryPath = "/usr/lib64/pkcs11/opensc-pkcs11.so" // Fedora/RHEL
6161- } else if _, err := os.Stat("/usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11.so"); err == nil {
6262- libraryPath = "/usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11.so" // Debian/Ubuntu
6363- } else {
5656+ // Try common locations (Debian/Ubuntu path first for trixie-slim)
5757+ libraryPaths := []string{
5858+ "/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so", // Debian/Ubuntu (trixie-slim)
5959+ "/usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11.so", // Debian/Ubuntu (older)
6060+ "/usr/lib64/pkcs11/opensc-pkcs11.so", // Fedora/RHEL
6161+ "/usr/lib/pkcs11/opensc-pkcs11.so", // Generic fallback
6262+ }
6363+ found := false
6464+ for _, path := range libraryPaths {
6565+ if _, err := os.Stat(path); err == nil {
6666+ libraryPath = path
6767+ found = true
6868+ break
6969+ }
7070+ }
7171+ if !found {
6472 log.Fatal("Could not find PKCS#11 library. Set PKCS11_LIBRARY environment variable.")
6573 }
6674 }