Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Kernel build

765 bytes added, 11:27, 19 February 2007
added info on modifying kernel configs when using source-RPM
</pre>
in appropriate places where similar text lines are.
 
=== Modifying configs ===
If you want to modify kernel configs, you need to do the changes via the kernel spec file. Insert your modifications after the following part of the spec file:
<pre>
# now run oldconfig over all the config files
for i in *.config*
do
mv $i .config
</pre>
You can add kernel settings for example in the following way:
<pre>
echo "YOUR_KERNEL_OPTION=m" >> .config
</pre>
If you try to modify the config files directly (not through the spec file), running rpmbuild will fail with the following error:
<pre>
make[1]: *** [nonint_oldconfig] Error 1
make: *** [nonint_oldconfig] Error 2
</pre>
Some information on this can be found in the following thread: http://www.redhat.com/archives/fedora-list/2005-October/msg00921.html
=== Building RPMs ===
21
edits