{"id":14340,"date":"2020-04-16T11:51:52","date_gmt":"2020-04-16T18:51:52","guid":{"rendered":"http:\/\/ainslies.net\/?p=14340"},"modified":"2020-04-16T11:51:52","modified_gmt":"2020-04-16T18:51:52","slug":"ubuntu-20-04-focal-secure-boot","status":"publish","type":"post","link":"https:\/\/ainslies.net\/?p=14340","title":{"rendered":"Ubuntu 20.04 focal secure boot"},"content":{"rendered":"\n<p>I was trying to install a dkms package on focal and it would ask for the MOC signing password but then on reboot it would not confirm it so I still couldn&#8217;t load the module <\/p>\n\n\n\n<p>I figured out how to manually add the signing key. I likely broke the whole secure boot thing while I was at it but that&#8217;s a problem for another day.<\/p>\n\n\n\n<p>First make sure that a key has been generated <\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">sudo update-secureboot-policy --new-key<\/div><\/div>\n\n<\/pre>\n\n\n\n<p>Then copy that key to somewhere accessible during boot<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">sudo cp \/var\/lib\/shim-signed\/mok\/MOK.der \/boot\/efi\/EFI\/ubuntu<\/div><\/div>\n\n<\/pre>\n\n\n\n<p>Now force the MOK shim to run during boot<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">sudo mokutil --disable-validation<\/div><\/div>\n\n<\/pre>\n\n\n\n<p>During boot you should get a nice blue screen that says add key from disk. Find the MOK.der you copied above.<\/p>\n\n\n\n<p>Now you should be able to load DKMS signed modules.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to install a dkms package on focal and it would ask for the MOC signing password but then on reboot it would not confirm it so I still couldn&#8217;t load the module I figured out how to &hellip; <a href=\"https:\/\/ainslies.net\/?p=14340\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14340","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/14340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14340"}],"version-history":[{"count":1,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/14340\/revisions"}],"predecessor-version":[{"id":14341,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/14340\/revisions\/14341"}],"wp:attachment":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}