<?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=5591&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / serial console - full disk encryption]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5591</link>
		<description><![CDATA[The most recent posts in serial console - full disk encryption.]]></description>
		<lastBuildDate>Sun, 05 Mar 2023 21:52:21 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: serial console - full disk encryption]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41399#p41399</link>
			<description><![CDATA[<p>Welcome to Devuan . . . could you please not post line-formatted text to the forum? The forum messages are a fixed width and it causes ugly line breaks. You should be able to go in and edit your post to get rid of them . . . Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sun, 05 Mar 2023 21:52:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41399#p41399</guid>
		</item>
		<item>
			<title><![CDATA[Re: serial console - full disk encryption]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41398#p41398</link>
			<description><![CDATA[<p>Hi Glenn,</p><p>&#160; Unfortunately as far as I know this will not work. The intelligence built into /etc/default/grub does not allow for this &quot;special&quot; scenario. As you might be aware, if you add the GRUB_ENABLE_CRYPTODISK option in that file, grub will do all the magic necessary to be able to &quot;unlock&quot; the disk before reading the grub.cfg. Obviously you can also add GRUB_SERIAL_COMMAND to the same file and you will see the grub boot menu in the serial console, but only AFTER decrypting the disk. That is why I posted this fix, it is a special case (seeing the passphrase prompt in the serial console) for which there are no out of the box solutions. If you have a solution that works without this hack and survives grub-update (which is basically grub-mkconfig -o for grub2) please post it and I will take a look.</p><p>Cheers<br />Gabriel</p><p>P.S. to be clear my hack survives grub-update but NOT grub-install</p>]]></description>
			<author><![CDATA[dummy@example.com (tranquilo)]]></author>
			<pubDate>Sun, 05 Mar 2023 21:45:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41398#p41398</guid>
		</item>
		<item>
			<title><![CDATA[Re: serial console - full disk encryption]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41381#p41381</link>
			<description><![CDATA[<p>When I have edits to grub that I want to &quot;stick&quot; from kernel version to new/other kernel version I edit /etc/default/grub.</p><p>Each time I do grub-update it uses that template.</p><p>I use it for simple stuff, but it may help you as well.</p><p>regards, Glenn</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sat, 04 Mar 2023 22:34:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41381#p41381</guid>
		</item>
		<item>
			<title><![CDATA[serial console - full disk encryption]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41371#p41371</link>
			<description><![CDATA[<p>Hello,</p><p> I use Devuan for most of my VM work. For servers, I try to keep the install light and minimum. I work mostly in the console, so I usually run my server VMs with serial console output only. More recently I have begun to fully encrypt the whole os, without a separate /boot partition. All went well until I realized that the cryptomount command which is called by Grub, is executed before the serial console initialization and as a result the prompt to enter the passphrase was not being passed to the serial console. I started working to fix the problem only to find out that as far as I could see, there were no simple clear examples of how to solve this specific problem. So here I am trying to detail how I fixed the problem in case this is useful to anyone else.</p><p>Cheers, and please feel free to correct/improve my post.</p><p>NOTE: </p><p>* My setup uses BIOS/MBR, but should also work for UEFI with small tweaks. <br />* I assume that the reader already knows how to configure grub to display in the serial console. <br />* Check your grub.cfg carefully for all the modules that need to be preloaded in the core.img ... i.e. luks2 vs luks<br />* A subsequent grub-install will blow out this configuration and it will no longer work.</p><p>I worked out the solution based on information provided by these two links:</p><p><a href="https://wiki.archlinux.org/title/GRUB/Tips_and_tricks" rel="nofollow">https://wiki.archlinux.org/title/GRUB/Tips_and_tricks</a><br /><a href="https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html#using-a-custom-keyboard-layout" rel="nofollow">https://cryptsetup-team.pages.debian.ne … ard-layout</a></p><div class="quotebox"><blockquote><div><p>----------------- early-grub.cfg ----------------------------------<br />serial --unit=0 --speed=9600<br />terminal_output serial<br />terminal_input serial</p><p>cryptomount -u YOUR_UUID</p><p>set root=(cryptouuid/YOUR_UUID)<br />set prefix=/boot/grub<br />configfile grub.cfg<br />----------------------------------------------------------------------------</p></div></blockquote></div><div class="codebox"><pre><code>grub-mkimage -c early-grub.cfg  -o /boot/grub/i386-pc/core.img -O i386-pc biosdisk cryptodisk ext2 gcry_rijndael gcry_sha256 gzio luks part_gpt part_msdos serial terminal configfile keylayouts at_keyboard 
grub-bios-setup -d /boot/grub/i386-pc/ /dev/YOUR_DISK</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tranquilo)]]></author>
			<pubDate>Sat, 04 Mar 2023 03:59:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41371#p41371</guid>
		</item>
	</channel>
</rss>
