r/gasket-dkms: Build/sign Coral TPU driver
The *gasket-dkms* package provides the `gasket` and `apex` kernel modules, which are needed fro the Google Coral Edge TPU. Since these are out-of-tree modules, they are not allowed in Fedora proper, so they are provided in a COPR, and have to be rebuilt for every kernel version. The DKMS framework handles automatically building the modules whenever the kernel updates. For systems usign UEFI with SecureBoot enabled, kernel modules must be signed by a key trusted by the platform. For locally-built modules, we can use the Machine Owner Key (MOK). Unfortunately, enrolling a new MOK requires rebooting and manual intervention during the boot process. Therefore, the *gasket-dkms* role has a `pause` step to ensure someone is paying attention and able handle the key enrollment interactively. Eventually, I'd like to have an RPM package with these modules pre-built, so production servers do not need the kernel development tools (`perl`, `gcc`, headers, etc.). It will be tricky, though, to make sure the modules get rebuilt for every kernel version as Fedora releases them.
This commit is contained in:
4
roles/gasket-dkms/files/sign.dkms.conf
Normal file
4
roles/gasket-dkms/files/sign.dkms.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
# vim set ft=sh :
|
||||
sign_tool='/etc/dkms/sign_helper.sh'
|
||||
mok_signing_key='/etc/pki/tls/private/dkms.key'
|
||||
mok_certificate='/etc/pki/tls/certs/dkms.der'
|
||||
Reference in New Issue
Block a user