<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7286&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7286</link>
		<description><![CDATA[The most recent posts in [SOLVED] Help with signing nvidia's driver with secure boot enabled.]]></description>
		<lastBuildDate>Sat, 19 Jul 2025 18:21:34 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56778#p56778</link>
			<description><![CDATA[<p>Although solved i still cant understand why on earth secureBOOT is needed if i add a gpu driver in my kernel. Wouldnt be enough to sign a module with a sysadm priv key in a kernel&#039;s keyring?</p><div class="quotebox"><blockquote><div><p>&gt;&#160; (7) To maintain secure boot mode, the kernel modules must be signed and the<br />&gt;&#160; &#160; &#160; kernel must check the signature on them.&#160; The key must be compiled into<br />&gt;&#160; &#160; &#160; the kernel or the bootloader or must reside in the UEFI database.</p><p>Wait right here.&#160; This is NOT mandated by UEFI, nor by anyone else.&#160; It<br />might be a nice thing that some people and companies want to implement,<br />but please don&#039;t think that some external entity is requiring that Linux<br />implement this, that is not true.</p></div></blockquote></div><p><a href="https://marc.info/?l=linux-kernel&amp;m=136184041106254&amp;w=2" rel="nofollow">@</a>kernel email list / Re: [GIT PULL] Load keys from signed PE binaries (2013)</p><p><a href="https://lkml.iu.edu/hypermail/linux/kernel/1804.0/01623.html" rel="nofollow">@</a> Linus vs Matthew Garrett on secureboot . (2019)</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Sat, 19 Jul 2025 18:21:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56778#p56778</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56683#p56683</link>
			<description><![CDATA[<p>@g4stra thanks . That worked.</p><div class="codebox"><pre><code>$ sudo dpkg -l | grep nvidia
..
ii  nvidia-persistenced 
..</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Sat, 12 Jul 2025 21:06:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56683#p56683</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56678#p56678</link>
			<description><![CDATA[<p>The last time i looked...</p><p>Errors were encountered while processing:<br /> nvidia-persistenced</p><p>This error was caused by the dep package script failing to start (not stopping first) an already running daemon.<br />Just manually stop &#039;nvidia-persistenced&#039; and then &#039;apt -f install&#039; to let the script start &#039;nvidia-persistenced&#039; itself and complete.</p>]]></description>
			<author><![CDATA[dummy@example.com (g4sra)]]></author>
			<pubDate>Sat, 12 Jul 2025 17:38:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56678#p56678</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56677#p56677</link>
			<description><![CDATA[<p>shim source deb packages has an issue <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990311" rel="nofollow">#990311</a> that although is reported again an older version of shim it&#039;s related to nvidia gpu driver.</p><p>The timing issue is the reverse of what i say. I have trouble using mokutil of the shim and not enrolling the keys from inside the uefi setup utility.</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Sat, 12 Jul 2025 15:52:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56677#p56677</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56660#p56660</link>
			<description><![CDATA[<p>looks like there might be timing issues with _some_ distros</p><p>quoting from:</p><p><a href="https://benleskey.com/blog/opensuse#nvidia" rel="nofollow"> https://benleskey.com/blog/opensuse#nvidia</a></p><p>snippet:</p><div class="quotebox"><blockquote><div><p>The biggest problem with the NVIDIA drivers is updating them. With UEFI secure boot enabled, each time the drivers were upgraded I had to enroll their keys at boot time. If I missed the 10 second window (and you only get one chance, even after rebooting), the graphical environment couldn&#039;t come up and I had to recover manually by running sudo mokutil --import /usr/share/nvidia-pubkeys/whatever-nvidia-pubkey.der from the recovery environment. You can also disable kernel module verification by running sudo mokutil --disable-validation. This will ask you to set up a small password and then disable the verification at next boot time (assuming you can remember the small password you set up).</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Sat, 12 Jul 2025 05:44:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56660#p56660</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56655#p56655</link>
			<description><![CDATA[<p>In my rinit system I tried by </p><div class="codebox"><pre><code># runscvchdir single </code></pre></div><p>and then :</p><div class="codebox"><pre><code># cd /var/lib/dkms
# mokutil --import mok.pub 
Failed to enroll new keys</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Fri, 11 Jul 2025 20:57:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56655#p56655</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56651#p56651</link>
			<description><![CDATA[<p>did you try it in single-user?(just a casual guess)</p>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Fri, 11 Jul 2025 14:17:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56651#p56651</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56649#p56649</link>
			<description><![CDATA[<p>[SOLVED] by enroll-ing the nvidia pub key from inside the bios.<br />&#160; &#160; &#160; &#160; &#160;</p><ul><li><p>1. we move&#160; nvidia-modsign-crt-89A7BE16.der in /boot/efi/EFI/debian</p></li><li><p>2. we start uefi setup</p></li><li><p>3. advanced / menus / boot / secure boot / keymanagement / append default db</p></li></ul><p>But i still havent figured why&#160; sudo mokutil --import nvidia-pubkey.der&#160; didnt work neither the error with the persistent nvidia daemon.</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Fri, 11 Jul 2025 12:31:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56649#p56649</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Help with signing nvidia's driver with secure boot enabled]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56571#p56571</link>
			<description><![CDATA[<p>Release: Daedalus 5 (debian bookwarm 12)</p><p><a href="https://wiki.devuan.org/?n=Profiles.NvidiaGpus#toc-1.2" rel="nofollow">@</a> devuan wiki / nvidia gpus</p><p><a href="https://dev.to/dev-charodeyka/debian-secure-boot-to-be-or-not-to-be-that-is-the-question-1o82" rel="nofollow">@</a>Debian Secure Boot: To be, or not to be, that is the question!&#160; . Nov 29, 2024&#160; by Anna. A detailed view on signing nvidia drivers in bookwarm.</p><p><a href="https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_12_.22Bookworm.22" rel="nofollow">@</a> debian wiki / NvidiaGraphicsDrivers.</p><p><a href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=nvidia-driver;dist=unstable" rel="nofollow">@</a> deb / nvidia-driver / bugs</p><p>related workflows : Display current status of gpu accelaration. If nvidia-driver is not installed Daedalus rollbacks in using software rasterizer . Lower analysis and in order of ten more slow.</p><p>Current understanding : deb package <strong>nvidia-kernel</strong> will try to build the driver and sign it. But with secure boot enabled those keys created during that process must be &#039;rolled&#039;. A process that i understand to mean that those keys must get known by the UEFI in order to allow during boot the nvidia driver to load. That process doesnt proceed in Daedalus.</p><div class="codebox"><pre><code>$ mokutil --sb-state
SecureBoot enabled

$ sudo apt install nvidia-driver firmware-misc-nonfree

$ ls /var/lib/dkms/
mok.key  mok.pub

$ sudo mokutil --import /var/lib/dkms/mok.pub 
[sudo] password for chomwitt: 
input password: 
input password again: 
Failed to enroll new keys</code></pre></div><p>A related issue during nvidia-driver installation :</p><div class="codebox"><pre><code>$ sudo apt install nvidia-driver firmware-misc-nonfree
 Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-33-amd64
Errors were encountered while processing:
 nvidia-persistenced
E: Sub-process /usr/bin/dpkg returned an error code (1)
...

$ dpkg -l nvidia-persistenced 
iF  nvidia-persistenced 535.171.04-1~deb12u1 amd64        daemon to maintain persistent software state in the NVIDIA driver</code></pre></div><p>/var/log/syslog during nvidia-driver installation:</p><div class="codebox"><pre><code>2025-07-07T15:17:03.921569+03:00 enousold nvidia-persistenced: Started (10510)
2025-07-07T15:17:03.921732+03:00 enousold nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
2025-07-07T15:17:03.921749+03:00 enousold nvidia-persistenced: Shutdown (10510)</code></pre></div><p>But libnvidia-cfg1 is pulled by nvidia-driver and contains </p><div class="codebox"><pre><code>/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-cfg.so.535.247.01
/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-cfg.so.1</code></pre></div><p>I found a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1406868" rel="nofollow">2017 bug report </a>on fedora that includes a strace session that resembles mine.</p><p>I found also a test for whether efivars are writeable:<br /># echo -n &quot;test&quot; &gt; test.data<br /># efivar -f test.data -w -n 605dab50-e046-4300-abb6-3dd810dd8b23-MokTest</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Mon, 07 Jul 2025 09:18:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56571#p56571</guid>
		</item>
	</channel>
</rss>
