<?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>codemonkey.org.uk &#187; packaging</title>
	<atom:link href="http://www.codemonkey.org.uk/tag/packaging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkey.org.uk</link>
	<description>Dave Jones' Linux &#38; opensource stuff.</description>
	<lastBuildDate>Sat, 03 Jul 2010 23:33:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>An annoying kernel packaging bug.</title>
		<link>http://www.codemonkey.org.uk/2009/12/10/annoying-kernel-packaging-bug/</link>
		<comments>http://www.codemonkey.org.uk/2009/12/10/annoying-kernel-packaging-bug/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 23:32:25 +0000</pubDate>
		<dc:creator>davej</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dracut]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[initramfs]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[packaging]]></category>

		<guid isPermaLink="false">http://www.codemonkey.org.uk/?p=275</guid>
		<description><![CDATA[The kernel rpm package creates an initramfs file that gets dropped in /boot at install time. Creation of this file is the responsibility of dracut (or mkinitrd in older releases), called from the kernels %post script. Because we want removal of a kernel to also remove its associated initrd file (or else /boot would fill [...]<p><a href="http://www.codemonkey.org.uk/2009/12/10/annoying-kernel-packaging-bug/">An annoying kernel packaging bug.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>



No related posts.]]></description>
			<content:encoded><![CDATA[<p>The kernel rpm package creates an initramfs file that gets dropped in /boot at install time. Creation of this file is the responsibility of dracut (or mkinitrd in older releases), called from the kernels %post script. Because we want removal of a kernel to also remove its associated initrd file (or else /boot would fill up), we used to list the initramfs file in rpms database as a %ghost file owned by the kernel.</p>
<p>For a long time, this hasn&#8217;t been a problem.  Now that dracut creates more feature-heavy initramfs files, people were noticing that they were running out of space in /boot during the installation of the kernel rpm. People were asking <a href="https://bugzilla.redhat.com/show_bug.cgi?id=530778">&#8220;why doesn&#8217;t rpm check for sufficient diskspace before it tries to install ?&#8221;</a>  Well, it does.  The problem is that for %ghost files, it has no way of knowing how big they are going to be.</p>
<p>So for Fedora 12, we ended up with an ugly hack. Instead of listing the file as a ghost, we create a 20MB empty file, owned by the kernel, which gets overwritten during %post by dracut with the real initramfs.</p>
<p>The big problem with this, is that it destroys the possibility for deltarpms to work. (It also guarantees that signature verification using rpm&#8217;s database will fail)</p>
<p>Something better needs to happen, but at this stage, I&#8217;m not entirely sure what that will be. </p>
<p><a href="http://www.codemonkey.org.uk/2009/12/10/annoying-kernel-packaging-bug/">An annoying kernel packaging bug.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.codemonkey.org.uk/2009/12/10/annoying-kernel-packaging-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
