{"id":1217,"date":"2015-04-09T23:21:19","date_gmt":"2015-04-09T22:21:19","guid":{"rendered":"http:\/\/cyberelk.net\/tim\/?p=1217"},"modified":"2015-06-30T08:52:30","modified_gmt":"2015-06-30T07:52:30","slug":"headless-encrypted-boot-with-fedora-server","status":"publish","type":"post","link":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/","title":{"rendered":"Headless encrypted boot with Fedora Server"},"content":{"rendered":"<p>Here is a recipe for using encrypted boot on a Fedora Server system that does not have a monitor or keyboard attached during normal use.<\/p>\n<p>I&#8217;ll use Fedora 21 Server, and will have a dedicated encrypted volume group for data but leave the main operating system volume group unencrypted. The encryption key will be stored on a USB memory stick. When it is connected the system will boot normally; otherwise it will wait for a while for it to be connected and finally fall back to emergency mode.<\/p>\n<p><!--more--><\/p>\n<h3>Installing<\/h3>\n<p>When installing, create a separate volume group in which to put the actual data volumes. To do that, select &#8220;I will configure partitioning&#8221; when setting up disk storage.<br \/>\n<a href=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1221\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/01-config-partitioning\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning.png\" data-orig-size=\"490,182\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"01-config-partitioning\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning.png\" class=\"alignnone size-medium wp-image-1221\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png\" alt=\"01-config-partitioning\" width=\"450\" height=\"167\" srcset=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png 450w, https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning.png 490w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>On the next page, allow the installer to create the mount points automatically: we&#8217;ll edit them next.<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1223\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/02-create-automatically\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/02-create-automatically.png\" data-orig-size=\"343,293\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"02-create-automatically\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/02-create-automatically.png\" class=\"alignnone size-full wp-image-1223\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/02-create-automatically.png\" alt=\"02-create-automatically\" width=\"343\" height=\"293\" \/><\/p>\n<p>Next, set up one of the mount points for the data volumes. In this example, I have used <tt>\/home<\/tt>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1226\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/03-home-lv\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/03-home-lv.png\" data-orig-size=\"337,265\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"03-home-lv\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/03-home-lv.png\" class=\"alignnone size-full wp-image-1226\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/03-home-lv.png\" alt=\"03-home-lv\" width=\"337\" height=\"265\" \/><\/p>\n<p>In the screenshot above, I&#8217;ve decreased the size for the <tt>\/<\/tt> volume to make space for a new volume, then added one and set its mount point to <tt>\/home<\/tt>. It is currently in the automatically-created <tt>fedora-server<\/tt> volume group.<\/p>\n<p>Next, put this new volume in a volume group of its own by selecting <tt>\/home<\/tt> and choosing &#8220;Create a new volume group &#8230;&#8221; in the Volume Group drop-down.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1227\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/04-new-vg\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/04-new-vg.png\" data-orig-size=\"328,121\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"04-new-vg\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/04-new-vg.png\" class=\"alignnone size-full wp-image-1227\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/04-new-vg.png\" alt=\"04-new-vg\" width=\"328\" height=\"121\" \/><\/p>\n<p>Give the new volume group a name (for example, &#8220;data&#8221;), and choose to have it encrypted by clicking on the checkbox.<\/p>\n<p><a href=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1228\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/05-config-vg\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg.png\" data-orig-size=\"487,307\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"05-config-vg\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg.png\" class=\"alignnone size-medium wp-image-1228\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg-450x284.png\" alt=\"05-config-vg\" width=\"450\" height=\"284\" srcset=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg-450x284.png 450w, https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/05-config-vg.png 487w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>Once you have added the volumes you want and clicked Done, you will be asked to set a passphrase.<br \/>\n<a href=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1232\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/06-set-pw\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw.png\" data-orig-size=\"1024,884\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"06-set-pw\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw-1024x884.png\" class=\"alignnone size-medium wp-image-1232\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw-450x388.png\" alt=\"06-set-pw\" width=\"450\" height=\"388\" srcset=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw-450x388.png 450w, https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/06-set-pw.png 1024w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>The summary of changes shows in more detail what will happen. You can see that a separate partition, vda3, will be the LUKS (encrypted) device, acting as an LVM physical volume: that&#8217;s for our <tt>data<\/tt> volume group.<br \/>\n<a href=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1233\" data-permalink=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/07-summary\/\" data-orig-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary.png\" data-orig-size=\"770,401\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"07-summary\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary.png\" class=\"alignnone size-medium wp-image-1233\" src=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary-450x234.png\" alt=\"07-summary\" width=\"450\" height=\"234\" srcset=\"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary-450x234.png 450w, https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/07-summary.png 770w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>Continue with the installation as normal and reboot when prompted. Don&#8217;t forget your passphrase!<\/p>\n<h3>Prepare encryption key media<\/h3>\n<p>Now, find a USB memory stick, create an ext4 filesystem on it whose label is &#8220;Key&#8221;, and mount it at <tt>\/mnt\/key<\/tt>. For example:<\/p>\n<pre># mkfs.ext4 -L Key \/dev\/sdb1\r\n# mkdir \/mnt\/key\r\n# mount \/dev\/sdb1 \/mnt\/key\r\n<\/pre>\n<p>Place the encryption passphrase in <tt>\/mnt\/key\/data-key<\/tt> &#8212; note, it must not have a newline at the end. We can use <tt>read<\/tt> and <tt>printf<\/tt> for this: it serves the dual purpose of removing the newline and keeping the passphrase out of the shell&#8217;s history.<\/p>\n<pre># read -r a ; printf %s \"$a\" &gt; \/mnt\/key\/data-key\r\n(enter passphrase, then press enter)\r\n# chmod 600 \/mnt\/key\/data-key\r\n# chcon -u unconfined_u -t unlabeled_t \/mnt\/key\/data-key\r\n<\/pre>\n<p>Next, edit <tt>\/etc\/fstab<\/tt> and add a line describing the filesystem we just made. Here is the line to add:<\/p>\n<pre>LABEL=Key  \/mnt\/key  ext4  defaults,ro,x-systemd.device-timeout=60  0  0\r\n<\/pre>\n<p>While there, adjust the <tt>x-systemd.device-timeout<\/tt> value for <tt>\/home<\/tt> from 0 (no timeout) to 60 (seconds). These two timeouts ensure that, rather than waiting indefinitely, the system will fall back to emergency mode if the USB device is not present.<\/p>\n<p>Test the fstab changes by running <tt>umount \/mnt\/key<\/tt> and then <tt>mount \/mnt\/key<\/tt>. If all is well there will be no error messages.<\/p>\n<p>Now that the passphrase is stored away we need to specify its location so it can be retrieved at boot. To do this, edit <tt>\/etc\/crypttab<\/tt>. Change &#8220;none&#8221; at the end of that line so that it contains the passphrase filename:<\/p>\n<pre>luks-... UUID=... \/mnt\/key\/data-key\r\n<\/pre>\n<p>At boot time, the filesystem will be mounted automatically in order to read the passphrase.<\/p>\n<h3>Set up encrypted swap<\/h3>\n<p>We definitely want the swap partition to be encrypted, but it doesn&#8217;t need to be in the encrypted volume group. Why? Because a new key can be generated each boot and discarded on shutdown. To do that, edit <tt>\/etc\/crypttab<\/tt> again and add this line:<\/p>\n<pre>cryptswap  \/dev\/mapper\/fedora--server-swap  \/dev\/urandom  swap\r\n<\/pre>\n<p>The <tt>\/dev\/mapper\/<\/tt> name must match the existing logical volume device mapper name: you can check it with &#8220;lsblk&#8221;.<\/p>\n<p>To actually use that mapped device, edit <tt>\/etc\/fstab<\/tt> and change the swap line to use <tt>\/dev\/mapper\/cryptswap<\/tt>:<\/p>\n<pre>\/dev\/mapper\/cryptswap  swap  swap  defaults  0  0\r\n<\/pre>\n<h3>No need to recreate initial ramdisk<\/h3>\n<p>At boot, the job of the initial ramdisk is to find and mount the root (<tt>\/<\/tt>) filesystem. As we haven&#8217;t made any changes to that, only to <tt>\/home<\/tt>, there is no need to run dracut.<\/p>\n<p>Reboot and test it!<\/p>\n<p>If the system is booted without the encryption media inserted, after a minute it will drop into emergency mode. The system will allow you to log in as root and make adjustments, but of course <tt>\/home<\/tt> will not be available unless you unlock it from the command line with the passphrase using <tt>cryptsetup<\/tt>.<\/p>\n<h3>Bonus: Automatically unmount encryption key media after boot<\/h3>\n<p>As things stand, the Key filesystem will remain mounted all the time, which means the device can&#8217;t be safely removed while the system is running. Here is a systemd service file you can use to unmount the encryption passphrase USB storage device after it has fulfilled its purpose at boot time:<\/p>\n<pre>[Unit]\r\nDescription=Unmount encryption passphrase media at boot\r\nDocumentation=https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/\r\nAfter=home.mount\r\n\r\n[Service]\r\nType=oneshot\r\nExecStart=\/usr\/bin\/umount \/mnt\/key\r\nRemainAfterExit=true\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Save it as <tt>\/etc\/systemd\/system\/umount-key.service<\/tt> and enable it:<\/p>\n<pre># systemctl enable umount-key.service\r\n<\/pre>\n<h3>All done<\/h3>\n<p>That&#8217;s it! Hope you find this useful.<\/p>\n<p>I&#8217;d love to have this work for whole-disk encryption, where the root filesystem is also encrypted, and I&#8217;d also love to be able to fall back to entering the passphrase at the console, rather than dropping into emergency mode. However it <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=905683\">doesn&#8217;t seem to be possible just yet<\/a>.<\/p>\n<p><small>UPDATED<\/small>: Fixed the read\/printf line to handle escape characters better as suggested by Ralph.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a recipe for using encrypted boot on a Fedora Server system that does not have a monitor or keyboard attached during normal use. I&#8217;ll use Fedora 21 Server, and will have a dedicated encrypted volume group for data but leave the main operating system volume group unencrypted. The encryption key will be stored [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[93,27,94,74],"class_list":["post-1217","post","type-post","status-publish","format-standard","hentry","category-software","tag-encrypted-boot","tag-fedora","tag-headless","tag-systemd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Headless encrypted boot with Fedora Server - PRINT HEAD<\/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:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Headless encrypted boot with Fedora Server - PRINT HEAD\" \/>\n<meta property=\"og:description\" content=\"Here is a recipe for using encrypted boot on a Fedora Server system that does not have a monitor or keyboard attached during normal use. I&#8217;ll use Fedora 21 Server, and will have a dedicated encrypted volume group for data but leave the main operating system volume group unencrypted. The encryption key will be stored [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/\" \/>\n<meta property=\"og:site_name\" content=\"PRINT HEAD\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-09T22:21:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-30T07:52:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png\" \/>\n<meta name=\"author\" content=\"Tim Waugh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tim Waugh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/\"},\"author\":{\"name\":\"Tim Waugh\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"headline\":\"Headless encrypted boot with Fedora Server\",\"datePublished\":\"2015-04-09T22:21:19+00:00\",\"dateModified\":\"2015-06-30T07:52:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/\"},\"wordCount\":850,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"image\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/01-config-partitioning-450x167.png\",\"keywords\":[\"encrypted boot\",\"fedora\",\"headless\",\"systemd\"],\"articleSection\":[\"Software\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/\",\"name\":\"Headless encrypted boot with Fedora Server - PRINT HEAD\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/01-config-partitioning-450x167.png\",\"datePublished\":\"2015-04-09T22:21:19+00:00\",\"dateModified\":\"2015-06-30T07:52:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#primaryimage\",\"url\":\"http:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/01-config-partitioning-450x167.png\",\"contentUrl\":\"http:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/01-config-partitioning-450x167.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2015\\\/04\\\/09\\\/headless-encrypted-boot-with-fedora-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Headless encrypted boot with Fedora Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\",\"name\":\"PRINT HEAD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\",\"name\":\"Tim Waugh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"contentUrl\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"width\":731,\"height\":140,\"caption\":\"Tim Waugh\"},\"logo\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\"},\"sameAs\":[\"http:\\\/\\\/cyberelk.net\\\/tim\"],\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/author\\\/twaugh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Headless encrypted boot with Fedora Server - PRINT HEAD","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:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/","og_locale":"en_GB","og_type":"article","og_title":"Headless encrypted boot with Fedora Server - PRINT HEAD","og_description":"Here is a recipe for using encrypted boot on a Fedora Server system that does not have a monitor or keyboard attached during normal use. I&#8217;ll use Fedora 21 Server, and will have a dedicated encrypted volume group for data but leave the main operating system volume group unencrypted. The encryption key will be stored [&hellip;]","og_url":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/","og_site_name":"PRINT HEAD","article_published_time":"2015-04-09T22:21:19+00:00","article_modified_time":"2015-06-30T07:52:30+00:00","og_image":[{"url":"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png","type":"","width":"","height":""}],"author":"Tim Waugh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tim Waugh","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#article","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/"},"author":{"name":"Tim Waugh","@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"headline":"Headless encrypted boot with Fedora Server","datePublished":"2015-04-09T22:21:19+00:00","dateModified":"2015-06-30T07:52:30+00:00","mainEntityOfPage":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/"},"wordCount":850,"commentCount":2,"publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"image":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#primaryimage"},"thumbnailUrl":"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png","keywords":["encrypted boot","fedora","headless","systemd"],"articleSection":["Software"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/","url":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/","name":"Headless encrypted boot with Fedora Server - PRINT HEAD","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#primaryimage"},"image":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#primaryimage"},"thumbnailUrl":"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png","datePublished":"2015-04-09T22:21:19+00:00","dateModified":"2015-06-30T07:52:30+00:00","breadcrumb":{"@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#primaryimage","url":"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png","contentUrl":"http:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2015\/04\/01-config-partitioning-450x167.png"},{"@type":"BreadcrumbList","@id":"https:\/\/cyberelk.net\/tim\/2015\/04\/09\/headless-encrypted-boot-with-fedora-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cyberelk.net\/tim\/"},{"@type":"ListItem","position":2,"name":"Headless encrypted boot with Fedora Server"}]},{"@type":"WebSite","@id":"https:\/\/cyberelk.net\/tim\/#website","url":"https:\/\/cyberelk.net\/tim\/","name":"PRINT HEAD","description":"","publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cyberelk.net\/tim\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6","name":"Tim Waugh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","url":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","contentUrl":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","width":731,"height":140,"caption":"Tim Waugh"},"logo":{"@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png"},"sameAs":["http:\/\/cyberelk.net\/tim"],"url":"https:\/\/cyberelk.net\/tim\/author\/twaugh\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pnnS2-jD","_links":{"self":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/comments?post=1217"}],"version-history":[{"count":22,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1217\/revisions"}],"predecessor-version":[{"id":1273,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1217\/revisions\/1273"}],"wp:attachment":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/media?parent=1217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/categories?post=1217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/tags?post=1217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}