{"id":582,"date":"2013-04-16T17:59:29","date_gmt":"2013-04-16T15:59:29","guid":{"rendered":"http:\/\/blog.the-leviathan.ch\/?p=582"},"modified":"2013-04-16T17:59:35","modified_gmt":"2013-04-16T15:59:35","slug":"luks-crypto-root-opensuse","status":"publish","type":"post","link":"https:\/\/blog.the-leviathan.ch\/?p=582","title":{"rendered":"LUKS crypto root &#038; openSUSE"},"content":{"rendered":"<p>Hi Folks<br \/>\nToday I&#8217;ll tell you how you can implement crypto root with keyfile on your openSUSE<br \/>\nFirst you will need the following patch (tinkered together for my own setup):<br \/>\n<a href=\"http:\/\/ftp.o2s.ch\/pub\/patches\/mkinitrd\/crypto_root_luks_mkinitrd.patch\">http:\/\/ftp.o2s.ch\/pub\/patches\/mkinitrd\/crypto_root_luks_mkinitrd.patch<\/a><\/p>\n<p>Then you&#8217;ll have to apply it and update your initrd:<\/p>\n<pre>sudo su\r\ncd\r\nwget http:\/\/ftp.o2s.ch\/pub\/patches\/mkinitrd\/crypto_root_luks_mkinitrd.patch\r\ncd \/\r\npatch -p0 &lt; \/root\/crypto_root_luks_mkinitrd.patch\r\nmkinitrd -d \/dev\/mapper\/root -f \"udev dm storage luks lvm2\" -m usb_storage<\/pre>\n<p>Next you add the new default boot parameters for grub in \/etc\/default\/grub<br \/>\nIn order to do so open the file and look for GRUB_CMDLINE_LINUX_DEFAULT<br \/>\nadd the following variables in order to unlock your root partition at bootup<br \/>\nluks_root_keydev=UUID=?? luks_root_keyfile=?? luks_root=UUID=?? luks=root<br \/>\n(replace the ?? by values which fit your setup)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi Folks Today I&#8217;ll tell you how you can implement crypto root with keyfile on your openSUSE First you will need the following patch (tinkered together for my own setup): http:\/\/ftp.o2s.ch\/pub\/patches\/mkinitrd\/crypto_root_luks_mkinitrd.patch Then you&#8217;ll have to apply it and update your initrd: sudo su cd wget http:\/\/ftp.o2s.ch\/pub\/patches\/mkinitrd\/crypto_root_luks_mkinitrd.patch cd \/ patch -p0 &lt; \/root\/crypto_root_luks_mkinitrd.patch mkinitrd -d \/dev\/mapper\/root &hellip; <a href=\"https:\/\/blog.the-leviathan.ch\/?p=582\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LUKS crypto root &#038; openSUSE<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-582","post","type-post","status-publish","format-standard","hentry","category-daily","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=582"}],"version-history":[{"count":3,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions\/586"}],"wp:attachment":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}