@happyaron Maybe for now check if running on Ubuntu in lsb_release and only activate the secure boot and shim stuff in Ubuntu and derivatives? We do stuff like that in fwupdate right now.
Example: https://anonscm.debian.org/cgit/uefi/fwupdate.git/tree/debian/rules#n7 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to dkms in Ubuntu. https://bugs.launchpad.net/bugs/1651124 Title: Please merge dkms 2.3-1 from Debian testing (main) Status in dkms package in Ubuntu: New Bug description: dkms upstream has become back to life in recent months, and merged many patches from downstream communities, thus merging with the new release is worthy to get old bug fixed and new features incorporated. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1651124/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp