<?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=6144&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Dropbear-initramfs: criptroot-unlock: another workaround]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6144</link>
		<description><![CDATA[The most recent posts in Dropbear-initramfs: criptroot-unlock: another workaround.]]></description>
		<lastBuildDate>Sun, 07 Jan 2024 10:20:59 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Dropbear-initramfs: criptroot-unlock: another workaround]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46992#p46992</link>
			<description><![CDATA[<p><a href="https://dev1galaxy.org/viewtopic.php?pid=46093#p46093" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=46093#p46093</a></p>]]></description>
			<author><![CDATA[dummy@example.com (tux2bsd)]]></author>
			<pubDate>Sun, 07 Jan 2024 10:20:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46992#p46992</guid>
		</item>
		<item>
			<title><![CDATA[Dropbear-initramfs: criptroot-unlock: another workaround]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45450#p45450</link>
			<description><![CDATA[<p>Dear Devuanized</p><p>based on a friend of mine, that happens to be also an OpenBSD dev, I got a tip to make the script <span class="bbc">criptroot-unlock</span> working!</p><p>As others already spotted out, the issue is in this block:</p><p><strong>Original block</strong></p><div class="codebox"><pre><code>if [ ! -f &quot;$TABFILE&quot; ] || [ &quot;$TABFILE&quot; -ot &quot;/proc/1&quot; ]; then
	# Too early, init-top/cryptroot hasn&#039;t finished yet
	echo &quot;Try again later&quot; &gt;&amp;2
	exit 1
fi</code></pre></div><p>My friend took a look briefly and suggested me to remove this section: <span class="bbc">|| [ &quot;$TABFILE&quot; -ot &quot;/proc/1&quot; ]</span><br />And it actually worked! With the options <span class="bbc">-p 222 -c cryptroot-unlock</span> in <span class="bbc">/etc/dropbear/initramfs/dropbear.conf</span>, when you connect through SSH it will ask directly the passphrase:</p><p><strong>Modified block</strong></p><div class="codebox"><pre><code>if [ ! -f &quot;$TABFILE&quot; ] ; then
	# Too early, init-top/cryptroot hasn&#039;t finished yet
	echo &quot;Try again later&quot; &gt;&amp;2
	exit 1
fi</code></pre></div><p>The script is located in:<br /><span class="bbc">/usr/share/cryptsetup/initramfs/bin/cryptroot-unlock</span></p><p>👍</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Fri, 17 Nov 2023 06:10:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45450#p45450</guid>
		</item>
	</channel>
</rss>
