<?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=2954&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [Solved] Grub "savedefault" not working]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2954</link>
		<description><![CDATA[The most recent posts in [Solved] Grub "savedefault" not working.]]></description>
		<lastBuildDate>Sat, 17 Aug 2019 15:45:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17436#p17436</link>
			<description><![CDATA[<p>The /etc/default/grub file whose contents you show here, takes the form of a shell script that is executed before running Grub, so that the variables are defined for Grub to use.<br />In a shell script, backticks are used to wrap around a statement that is the same as something that could be executed on the shell prompt. So</p><div class="codebox"><pre><code>`lsb_release -i -s 2&gt; /dev/null || echo Debian`</code></pre></div><p>means that the output of that command should be substituted. So if the output of that command is &quot;Devuan&quot; then the line is evaluated as&#160; <strong>GRUB_DISTRIBUTOR=Devuan</strong>.<br />The double quotes are just quotes, so the exact string &quot;quiet&quot; is the value for that last entry.<br />But back to the backticks and their contents. In most shells, the double-pipe || means a logical OR. In shell, that means if the first command returns false (that is, it fails in some way), run the second statement. So if lsb_release -i -s (with sending any errors to the null device, so suppress all error messages) fails, then just show the word Debian.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Sat, 17 Aug 2019 15:45:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17436#p17436</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17435#p17435</link>
			<description><![CDATA[<p>Just a note to add to SOLVED, at one time I <em>thought</em> there was something about quotes.&#160; I just looked at my file to see how I had saved configured... mixed quote and not quote and back-ticks, it doesn&#039;t seem to matter. </p><div class="codebox"><pre><code>GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet&quot;</code></pre></div><p>I agree, the mix is sloopy</p>]]></description>
			<author><![CDATA[dummy@example.com (djk44883)]]></author>
			<pubDate>Sat, 17 Aug 2019 15:29:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17435#p17435</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17068#p17068</link>
			<description><![CDATA[<div class="quotebox"><cite>Micronaut wrote:</cite><blockquote><div><p>I am reluctant to use dd on a disk that has a working OS on it</p></div></blockquote></div><p>The command is outputting to a file rather than the block device, it won&#039;t over-write your disk.</p><p>Anyway, please add [SOLVED] to the thread title to help others who may have this problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 14 Jul 2019 20:40:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17068#p17068</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17065#p17065</link>
			<description><![CDATA[<p>Wow, I am reluctant to use dd on a disk that has a working OS on it. Anyway, after going back and manually comparing the grub default on the new Devuan system with the one from the Mint system, I changed the parms to lower case. &quot;saved&quot; instead of &quot;SAVED&quot; and &quot;true&quot; instead of &quot;TRUE&quot;. It seems to be working now. Odd that the control items are NAMED in upper case, but the parm apparently must be lower case to be recognized.</p>]]></description>
			<author><![CDATA[dummy@example.com (Micronaut)]]></author>
			<pubDate>Sun, 14 Jul 2019 20:17:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17065#p17065</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17053#p17053</link>
			<description><![CDATA[<p>Try creating the /boot/grub/grubenv file:</p><div class="codebox"><pre><code># dd if=/dev/zero of=/boot/grub/grubenv bs=1024 count=1</code></pre></div><p>I have no idea if that will work, I don&#039;t use /etc/default/grub myself.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 14 Jul 2019 12:49:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17053#p17053</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17032#p17032</link>
			<description><![CDATA[<p>&quot;grub-editenv list&quot; produced no output at all. Even when run in a root terminal. From what I can see about grub-editenv in the man pages, that is where the default should be saved. But it&#039;s clearly not getting saved. This was a re-install over the previous Linux (Mint 17.3) -- could differences between the different versions of grub have caused a problem?</p>]]></description>
			<author><![CDATA[dummy@example.com (Micronaut)]]></author>
			<pubDate>Sat, 13 Jul 2019 21:25:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17032#p17032</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17008#p17008</link>
			<description><![CDATA[<p>Please post the output of</p><div class="codebox"><pre><code>grub-editenv list</code></pre></div><p>See also <a href="https://www.gnu.org/software/grub/manual/grub/grub.html#Environment-block" rel="nofollow">https://www.gnu.org/software/grub/manua … ment-block</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 13 Jul 2019 08:18:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17008#p17008</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16997#p16997</link>
			<description><![CDATA[<p>I suspect the question is probably &quot;what is different between mint and devuan&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sat, 13 Jul 2019 01:05:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16997#p16997</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Grub "savedefault" not working]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16995#p16995</link>
			<description><![CDATA[<p>It was great fun to discover Grub could be configured to save the last manual choice as the default for future boots. I used it with my Linux Mint Rosa (17.3) install and it worked fine. But now it won&#039;t work with Devuan Ascii. I can&#039;t figure out what is different. Just put:<br />GRUB_DEFAULT=saved<br />GRUB_SAVEDEFAULT=true<br />in the /etc/default/grub config file and run update-grub. It worked with Mint. What is different about grub in Devuan?</p>]]></description>
			<author><![CDATA[dummy@example.com (Micronaut)]]></author>
			<pubDate>Sat, 13 Jul 2019 00:56:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16995#p16995</guid>
		</item>
	</channel>
</rss>
