{"id":107,"date":"2018-12-05T14:34:11","date_gmt":"2018-12-05T22:34:11","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=107"},"modified":"2020-04-23T22:43:56","modified_gmt":"2020-04-24T06:43:56","slug":"centos-7-failed-set-moklistrt","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/","title":{"rendered":"CentOS 7:  Failed to set MokListRT: Invalid Parameter"},"content":{"rendered":"<p>You know what makes me angry? My servers not booting. I encountered this error after an update and reboot of CentOS 7:<\/p>\r\n<!-- \/wp:post-content --><!--EndFragment-->\r\n\r\n<!-- wp:paragraph \/-->\r\n\r\n<!-- wp:preformatted -->\r\n<pre class=\"wp-block-preformatted\">Failed to set MokListRT: Invalid Parameter\r\nSomething has gone seriously wrong: import_mok_state() failed:\r\nInvalid Parameter\r\n<\/pre>\r\n<!-- \/wp:preformatted -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>So here is how you fix it.<br \/><br \/><\/p>\r\n<p>Firstly, we need a CentoOS 7 ISO with the version of something like 1708 or 1707. <a href=\"https:\/\/buildlogs.centos.org\/rolling\/7\/isos\/x86_64\/\">Here is an archive of all the CentOS 7 releases.<\/a> Thanks to <b class=\"fn\">Alexander Zubkov<\/b> for commenting about the issue with the latest ISO.<\/p>\r\n<p><br \/>Either burn a new CentOS 7 disc, make a boot flash drive, or insert the install ISO to your VM. Boot from the disc and once the menu shows up select the following: Advanced -&gt; Rescue -&gt; Troubleshooting -&gt; Rescue media -&gt; and\u00a0press 1 when prompted.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>In the terminal you should now have, run the following commands:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:preformatted -->\r\n<pre class=\"wp-block-preformatted\">chroot \/mnt\/sysimage\r\ncd \/boot\/efi\/EFI\/centos\r\ncp grubx64.efi shimx64.efi\r\nexit\r\nreboot<\/pre>\r\n<!-- \/wp:preformatted -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>You should be able to reboot into CentOS now. However, we still need to exclude Shim and Mokutil from updates (shim-x64-12-2.el7.x86_64).<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>In a root terminal, run the following.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:preformatted -->\r\n<pre class=\"wp-block-preformatted\">echo 'exclude=shim*<em>,<\/em>mokutil*' &gt;&gt; \/etc\/yum.conf\r\nyum update<\/pre>\r\n<!-- \/wp:preformatted -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>You should be good to go now. If that does not work try copying CENTOS\\GRUBX64.EFI over top of EFI\\BOOTX64.EFI in your boot partition.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Another thing you can try is booting the <a href=\"https:\/\/www.supergrubdisk.org\/super-grub2-disk\/\">Super Grub2<\/a> disk and booting\u00a0 GRUBX64 directly, or try emergency mode.<\/p>\r\n<!-- \/wp:paragraph -->","protected":false},"excerpt":{"rendered":"<p>If you have the following error upon startup, do this to make the system bootable again.<\/p>\n<p>Failed to set MokListRT: Invalid Parameter<br \/>\nSomething has gone seriously wrong: import_mok_state() failed:<br \/>\nInvalid Parameter<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,10,8],"tags":[49,46,48,6,47,50],"coauthors":[39],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-centos","category-kernel","category-linux","tag-boot","tag-centos","tag-grub","tag-linux","tag-moklistrt","tag-yum"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"If you have the following error upon startup, do this to make the system bootable again.  Failed to set MokListRT: Invalid Parameter Something has gone seriously wrong: import_mok_state() failed: Invalid Parameter\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-05T22:34:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-24T06:43:56+00:00\" \/>\n<meta name=\"author\" content=\"Ryan Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/\"},\"author\":{\"name\":\"Ryan Parker\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"headline\":\"CentOS 7: Failed to set MokListRT: Invalid Parameter\",\"datePublished\":\"2018-12-05T22:34:11+00:00\",\"dateModified\":\"2020-04-24T06:43:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/\"},\"wordCount\":211,\"commentCount\":45,\"keywords\":[\"Boot\",\"CentOS\",\"GRUB\",\"Linux\",\"MokListRT\",\"Yum\"],\"articleSection\":[\"CentOS\",\"Kernel\",\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/\",\"name\":\"CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2018-12-05T22:34:11+00:00\",\"dateModified\":\"2020-04-24T06:43:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/grassyloki\\\/centos-7-failed-set-moklistrt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CentOS 7: Failed to set MokListRT: Invalid Parameter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\",\"name\":\"Ryan Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"caption\":\"Ryan Parker\"},\"description\":\"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/grassyloki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/","og_locale":"en_US","og_type":"article","og_title":"CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins","og_description":"If you have the following error upon startup, do this to make the system bootable again.  Failed to set MokListRT: Invalid Parameter Something has gone seriously wrong: import_mok_state() failed: Invalid Parameter","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/","og_site_name":"Angry Sysadmins","article_published_time":"2018-12-05T22:34:11+00:00","article_modified_time":"2020-04-24T06:43:56+00:00","author":"Ryan Parker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ryan Parker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/"},"author":{"name":"Ryan Parker","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"headline":"CentOS 7: Failed to set MokListRT: Invalid Parameter","datePublished":"2018-12-05T22:34:11+00:00","dateModified":"2020-04-24T06:43:56+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/"},"wordCount":211,"commentCount":45,"keywords":["Boot","CentOS","GRUB","Linux","MokListRT","Yum"],"articleSection":["CentOS","Kernel","Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/","name":"CentOS 7: Failed to set MokListRT: Invalid Parameter - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2018-12-05T22:34:11+00:00","dateModified":"2020-04-24T06:43:56+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/grassyloki\/centos-7-failed-set-moklistrt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"CentOS 7: Failed to set MokListRT: Invalid Parameter"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199","name":"Ryan Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d","url":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","caption":"Ryan Parker"},"description":"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/grassyloki\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":24,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=107"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}