<?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>Raskas' blog &#187; kickstart</title>
	<atom:link href="http://www.raskas.be/blog/category/linux-sysadmin/kickstart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raskas.be/blog</link>
	<description>Everything is possible... You only have to find out how.</description>
	<lastBuildDate>Wed, 22 Jun 2011 15:14:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Less than minimal</title>
		<link>http://www.raskas.be/blog/2007/03/07/less-than-minimal/</link>
		<comments>http://www.raskas.be/blog/2007/03/07/less-than-minimal/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 18:01:33 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux SysAdmin]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/03/07/less-than-minimal/</guid>
		<description><![CDATA[Last week I updated my CentOS base image document.
One important change was in the yum line.
Previously it would do a groupinstall of Base, which results in a total of 300 packages. This is the same amount of packages when it is installed from cd and minimal install is checked.
But this minimal install includes way to [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I updated my <a href="http://www.raskas.be/blog/howtos/centos-base-image/">CentOS base image</a> document.<br />
One important change was in the yum line.</p>
<p>Previously it would do a groupinstall of <b>Base</b>, which results in a total of 300 packages. This is the same amount of packages when it is installed from cd and minimal install is checked.<br />
But this minimal install includes way to much and useless packages like pcmcia, irda, isdn, &#8230;<br />
The groupinstall of <b>Core</b> gives a better result. Now only a bit more than 100 packages are installed. Even yum or openssh aren&#8217;t installed. So you will have to add some extra packages but at least you&#8217;re not stuck with all those unused packages and running services.</p>
<p>The same happens when you kickstart. By default it will install the base and core groups. But again this results in 300 packages. Just mentioning core or not mentioning base in the packages section doesn&#8217;t solve the problem.<br />
Luckily there is an, undocumented, option for the packages section. You can pass &#8211;nobase if you don&#8217;t want to install the complete Base group. But now you will have to mention the Core group or it will install not enough packages.<br />
This is how your packages section in the kickstart file can look like:<br />
<code><br />
% packages --nobase<br />
@ Core<br />
yum<br />
openssh-clients<br />
openssh-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/03/07/less-than-minimal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>kickstart with command line arguments</title>
		<link>http://www.raskas.be/blog/2007/02/01/kickstart-with-command-line-arguments/</link>
		<comments>http://www.raskas.be/blog/2007/02/01/kickstart-with-command-line-arguments/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 18:26:27 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/02/01/kickstart-with-command-line-arguments/</guid>
		<description><![CDATA[When you initiate a kickstart installation from a bootcd you have to enter something like: linux ks=hd:sda1:/ks.cfg.
This and whatever you enter on the same line can be accessed during the installation. This line is stored in /proc/cmdline.
It is not specific to a kickstart installation, but on every linux system you can find the information entered [...]]]></description>
			<content:encoded><![CDATA[<p>When you initiate a kickstart installation from a bootcd you have to enter something like: <b>linux ks=hd:sda1:/ks.cfg</b>.<br />
This and whatever you enter on the same line can be accessed during the installation. This line is stored in /proc/cmdline.<br />
It is not specific to a kickstart installation, but on every linux system you can find the information entered at the boot prompt in /proc/cmdline.</p>
<p>In <a href="http://www.raskas.be/blog/2007/01/28/kickstart-include/">a previous post</a> I mentioned how you can mount your usb-drive. As you can see <b>sda1</b> is hard-coded which isn&#8217;t very flexible. This can be done on a different way:<br />
<code><br />
%pre<br />
if grep -iqE "ks=hd:[a-z]{2,3}[0-9]:" /proc/cmdline<br />
then<br />
&nbsp;&nbsp;DISK=`cat /proc/cmdline | sed 's/.*ks=hd:\(.*\):.*/\1/'`<br />
fi<br />
mkdir -p /tmp/usb-disk-mount/<br />
mount /dev/$DISK /tmp/usb-disk-mount/<br />
</code></p>
<p>There are many things you can do with the line stored in /proc/cmdline.<br />
You can enter a keyword, and with that keyword you can select which files are needed for the installation.<br />
That keyword can also be used to specify a specific option.</p>
<p>The bad thing is that the %pre section is executed in a seperate run. If you set some variables during the %pre section (like $DISK in the above example) they won&#8217;t be available for the rest of the script.<br />
The include path of the file must be hard-coded but you can change existing content or generate the complete file during the %pre section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/02/01/kickstart-with-command-line-arguments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>kickstart: %include</title>
		<link>http://www.raskas.be/blog/2007/01/28/kickstart-include/</link>
		<comments>http://www.raskas.be/blog/2007/01/28/kickstart-include/#comments</comments>
		<pubDate>Sun, 28 Jan 2007 15:29:40 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/01/28/kickstart-include/</guid>
		<description><![CDATA[Last week I started playing with kickstart. You can read more about it in the howto section of my blog.
Today I was testing the %include command but every file and every path I tried gave me a file not found error.
It appears that just the specific kickstart config file is copied to /tmp and the [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I started playing with kickstart. You can <a href="http://www.raskas.be/blog/howtos/kickstart/">read more about it</a> in the howto section of my blog.</p>
<p>Today I was testing the %include command but every file and every path I tried gave me a file not found error.<br />
It appears that just the specific kickstart config file is copied to /tmp and the other content of my usb-disk is nowhere to find. This explains why my included files can&#8217;t be found.</p>
<p>The solution is to make your included files available during the %pre-section. This is possible because anaconda will parse the ks.cfg file 2 times. The first time it won&#8217;t complain about included files that can&#8217;t be found and only the %pre section is executed. The second time it will complain if an include file is missing.</p>
<p>This is how I made my includes work:<br />
* mount the usb-drive during the %pre section<br />
<code><br />
%pre<br />
mkdir -p /tmp/usb-disk-mount/<br />
mount /dev/sda1 /tmp/usb-disk-mount/<br />
</code><br />
* include the files<br />
<code><br />
%include /tmp/usb-disk-mount/partition/base<br />
%include /tmp/usb-disk-mount/network/dummy<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/01/28/kickstart-include/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

