
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>funkyHat &#124; Matt Wheeler &#124; Blog &#187; ubuntu</title>
	<atom:link href="http://funkyhat.org/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://funkyhat.org</link>
	<description>random, and less random, thoughts of Matt Wheeler</description>
	<lastBuildDate>Mon, 17 May 2010 22:13:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Putting -rt kernels first in grub2</title>
		<link>http://funkyhat.org/2010/01/19/putting-rt-kernels-first-in-grub2/</link>
		<comments>http://funkyhat.org/2010/01/19/putting-rt-kernels-first-in-grub2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 03:01:31 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://funkyhat.org/?p=36</guid>
		<description><![CDATA[I&#8217;ve installed the linux-rt realtime kernel package in Ubuntu 9.10 so I can play with the pro audio stuff that uses JACK properly. It seems that the -rt kernel doesn&#8217;t get as many updates as the -generic one, resulting in it having a lower release version (currently -generic is at 2.6.31-18 and -rt is at [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed the linux-rt realtime kernel package in Ubuntu 9.10 so I can play with the pro audio stuff that uses JACK properly. It seems that the -rt kernel doesn&#8217;t get as many updates as the -generic one, resulting in it having a lower release version (currently -generic is at 2.6.31-18 and -rt is at 2.6.31-9).</p>
<p>This is unfortunate because it means that -generic kernels will be placed first in the grub boot menu, and be chosen as the default boot option. I could change the default boot option each time a new kernel is installed, but I&#8217;m lazy.</p>
<p>There are a couple of solutions to this, firstly I could remove all of the linux-generic kernel versions, but I&#8217;d rather not just in case the -rt kernel causes issues, or some apps don&#8217;t play nice with it.</p>
<p>The other solution is to figure out how to re-order the grub menu. With grub2 (in Ubuntu and Debian at least) the menu config file should not be edited by hand, and is instead generated by running the scripts in /etc/grub.d/ in order. I didn&#8217;t work out exactly how the scripts order the kernels, but I figured out if I copied the file responsible for generating the linux entries in the boot list and modified my copy so that it only found -rt kernels I could force the -rt kernels to the top.</p>
<p>Here are the commands needed to do this:</p>
<pre>cd /etc/grub.d
sudo cp 10_linux 09_linux-rt
sudo sed -i 's:vmlinu[xz]-\*:vmlinu[xz]-*rt:' 09_linux-rt #&lt;-edits 09_linux-rt and makes
sudo update-grub                                          #  it only find -rt kernels
</pre>
<p>This does result in the -rt kernels being listed twice, and I could modify 10_linux as well so that this didn&#8217;t happen, but I&#8217;m happy with the way it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://funkyhat.org/2010/01/19/putting-rt-kernels-first-in-grub2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
