<?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=6958&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Devuan Daedalus - hibernation settings]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6958</link>
		<description><![CDATA[The most recent posts in Devuan Daedalus - hibernation settings.]]></description>
		<lastBuildDate>Sat, 07 Dec 2024 01:07:15 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53306#p53306</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... had a disruptive space on the line making it be &quot;RESUME= none&quot; .</p></div></blockquote></div><p>I could have sworn I did a copy/paste of the original text by <span class="bbc">fsmithred</span>.<br />Evidently not.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... the file gets processed as a shell script ...<br />... experience the shell script difference between the two lines lines:</p><div class="codebox"><pre><code>RESUME=none
RESUME= none</code></pre></div></div></blockquote></div><p>In other words, a syntax error (?)</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... first line sets RESUME to &quot;none&quot; ...<br />... second line sets RESUME to&#160; the empty string for a sub shell attempting to execute a program named &quot;none&quot;.</p></div></blockquote></div><p>Thank you for taking the time to explain all this.<br />Learn something every day.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... simple mistake to make ...<br />... usability coefficient for initramfs-tools has room to be raised.</p></div></blockquote></div><p>And I should have checked ...&#160; 8^°</p><p>But it worked, I am no longer getting that line in my <span class="bbc">dmesg</span>:<br />ie:</p><div class="codebox"><pre><code>--- snip ---
[   24.068315] PM: Image not found (code -22)
--- snip ---</code></pre></div><p>Thank you very much for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 07 Dec 2024 01:07:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53306#p53306</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53303#p53303</link>
			<description><![CDATA[<p>I&#039;d guess you a had a disruptive space on the linemaking it be &quot;RESUME= none&quot; .</p><p>Since the file gets processed as a shell script (i.e. sourcing it into the exection of /usr/sbin/mkinitramfs) you got to experience the shell script difference between the two lines lines:</p><div class="codebox"><pre><code>RESUME=none
RESUME= none</code></pre></div><p>The first line sets RESUME to &quot;none&quot; within mkinitramfs while the second line sets RESUME to&#160; the empty string for a sub shell attempting to execute a program named &quot;none&quot;.</p><p>It&#039;s a simple mistake to make and clearly the usability coefficient for initramfs-tools has room to be raised. In fact, one could say that that way of loading variables has big clown feets well into the security risk space.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 06 Dec 2024 21:02:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53303#p53303</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53299#p53299</link>
			<description><![CDATA[<p>Hello.</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Not so sure ...</p></div></blockquote></div><p>Not willing to let it go at that, I went over the error message again ...</p><div class="codebox"><pre><code># update-initramfs -u
--- snip ---
/usr/sbin/mkinitramfs: 5: /etc/initramfs-tools/conf.d/resume: none: not found
--- snip ---
#</code></pre></div><p>... because it had to be a spelling or syntax problem.<br />ie: my bad.</p><p>I tried with misspelling <span class="bbc">none</span> -&gt; <span class="bbc">nones</span> and got this:</p><div class="codebox"><pre><code># update-initramfs -u
--- snip ---
W: initramfs-tools configuration sets RESUME=nones
W: but no matching swap device is available.
--- snip ---
#</code></pre></div><p>The system does not find a matching swap device, but that is <em>not</em> the error I previously had.</p><p>So I tried using the syntax that the error message <span class="bbu">actually</span> printed out, ie: <span class="bbc">resume: none</span> &lt;- a space in the wrong place<br />and then got the original error message:</p><div class="codebox"><pre><code># update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.0-28-amd64
/usr/sbin/mkinitramfs: 5: /etc/initramfs-tools/conf.d/resume: none: not found
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=f0187ff0-be52-4bbc-9461-40f744554b85)
I: Set the RESUME variable to override this.
live-boot: core filesystems dm-verity devices utils udev blockdev dns.
# </code></pre></div><p>So ...<br />Mystery solved.<br />ie: a <em>severe</em> case of PEBCAK.&#160; 8^°</p><p>Once again, thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2024 13:03:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53299#p53299</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53298#p53298</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Please show the file in that failing use case, when you set RESUME=none ...</p></div></blockquote></div><p>I had deleted the edited file and returned to the back-up I saved.<br />So I re-edited it now.</p><div class="codebox"><pre><code>$ cat /etc/initramfs-tools/conf.d/resume
# changed 06122024
# see https://dev1galaxy.org/viewtopic.php?pid=53266#p53266
# this box does not use hibernation / resume

RESUME=none

# RESUME=UUID=f0187ff0-be52-4bbc-9461-40f744554b85
$ </code></pre></div><p>But <em>now</em> it works. </p><div class="codebox"><pre><code># update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.0-28-amd64
live-boot: core filesystems dm-verity devices utils udev blockdev dns.
#</code></pre></div><p>I&#039;m <em>sure</em> I had written / spelled it correctly.</p><p>But if it did not work, there was obviously <em>something</em> amiss.<br />Maybe the added comments?<br />Not so sure now.&#160; 8^/</p><p>Thank you very much for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2024 12:24:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53298#p53298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53296#p53296</link>
			<description><![CDATA[<p>Please show the file in that failing use case, when you set RESUME=none and run into the complaint when running update-initramfs.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 06 Dec 2024 11:49:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53296#p53296</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53295#p53295</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Please show ...</p></div></blockquote></div><div class="codebox"><pre><code>$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=f0187ff0-be52-4bbc-9461-40f744554b85
$ </code></pre></div><div class="codebox"><pre><code>$ sudo blkid
--- snip ---
/dev/sdb3: UUID=&quot;f0187ff0-be52-4bbc-9461-40f744554b85&quot; TYPE=&quot;swap&quot; PARTUUID=&quot;0004a8f4-03&quot;
--- snip ---
$ </code></pre></div><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Is there another file ...</p></div></blockquote></div><p>No, just that one.</p><div class="codebox"><pre><code>$ ls /etc/initramfs-tools/conf.d/
resume
$ </code></pre></div><p>Thank you for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2024 11:39:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53295#p53295</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53294#p53294</link>
			<description><![CDATA[<p>Please show your file <span class="bbc">/etc/initramfs-tools/conf.d/resume</span>.</p><p>Is there another file in <span class="bbc">/etc/initramfs-tools/conf.d/</span> ? If so, which, and please show it too.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 06 Dec 2024 10:58:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53294#p53294</guid>
		</item>
		<item>
			<title><![CDATA[Devuan Daedalus - hibernation settings]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53293#p53293</link>
			<description><![CDATA[<p>Hello:</p><p>This topic is a split from this <a href="https://dev1galaxy.org/viewtopic.php?id=6955" rel="nofollow">this</a> thread.<br />(See posts #19 / #20) </p><p>--- split ---</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... want to hibernate to disk, replace &quot;none&quot; with the uuid of your swap partition.</p></div></blockquote></div><p>--- /split---</p><p>That is exactly what my box has and the UUID is the swap file. <br />But it happens that I do not keep my system on all day, just shut down and reboot as needed.<br />ie: there is no hibernation image present, never set it up to hibernate.</p><p>At some point my <span class="bbc">dmesg</span> printout reads:</p><div class="codebox"><pre><code>--- snip ---
[   24.068315] PM: Image not found (code -22)
--- snip ---</code></pre></div><p>Q:<br />Does the system look for a hibernation image at boot time because the line in <span class="bbc">/etc/initramfs-tools/conf.d/resume</span> is <em>not</em> set to <span class="bbc">=none</span> and there is a valid (swap file) UUID present?</p><p>If I edit <span class="bbc">/etc/initramfs-tools/conf.d/resume</span> and set <span class="bbc">RESUME=none</span>, on updating I get this:</p><div class="codebox"><pre><code># update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.0-28-amd64
/usr/sbin/mkinitramfs: 5: /etc/initramfs-tools/conf.d/resume: none: not found
I: The initramfs will attempt to resume from /dev/sdb3
I: (UUID=f0187ff0-be52-4bbc-9461-40f744554b85)
I: Set the RESUME variable to override this.
live-boot: core filesystems dm-verity devices utils udev blockdev dns.
# </code></pre></div><p>The system looks for a swap file and not finding one with a UUID of <span class="bbc">none</span>, finds one with a valid UUID and uses it.<br />But like I said, I never set the system up for hibernation and although the system finds a swap file to hibernate, it does not (as <span class="bbc">dmesg</span> indicates) find an image. (I am assuming it is a hibernation image) </p><p>How to solve this?<br />Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2024 10:39:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53293#p53293</guid>
		</item>
	</channel>
</rss>
