JackLab/Change inst-sys and control.xml in alpha2 for kernel-rt and network

From openSUSE

Kernel-rt is not installed by default in alpha2

To change this inst-sys and control.xml need an update.

The netwok is not configured is not during installation

To change this control.xml needs an update


The yast module Kernel.ycp decides wich kernel to install. But the opensuse version doesn't know about kernel-rt. The good news is Kernel.ycp on the installation system is already patched for kernel-rt, it just has to be compiled.

do as user root

#dvd image is mounted on /mnt
mkdir /tmp/mnt
mount -o loop /mnt/boot/i386/root /tmp/mnt/

as normal user

#copy everything to ~Documents/JAD/inst-sys
mkdir -p ~/Documents/JAD/inst-sys
cd ~/Documents/JAD/inst-sys
rsync -avz /tmp/mnt/* .

#compile Kernel.ycp
cd ~/Documents/JAD/inst-sys/usr/share/YaST2/modules
ycpc -M . -c ./Kernel.ycp

#pack inst-sys
cd ~/Documents/JAD
/sbin/mkfs.cramfs inst-sys root

#cleanup
rm -rf inst-sys

Put "root" on the new dvd-image

Now the new kernel will be installaed. But the system will not boot. Two links are missing

A small script will do it. Add it to control.xml

To enable network configuration a comment in control.xml has to be moved.

Here is the patch

307a308,318
>                   <prescript>
>                           <interpreter>shell</interpreter>
>                           <source><![CDATA[
> cd /mnt/boot
> ls -la
> echo creating link for kernel-rt
> ln -s vmlinuz-rt vmlinuz
> echo creating link for initrd-rt
> ln -s initrd-rt initrd
>                               ]]></source>
>                       </prescript>
608c619
< <!--                <module>
---
>                 <module>
613c624
<               <module>
---
> <!--          <module>

save it as ~/Documents/JAD/control.patch

Patch control.xml

#dvd on /mnt
cd ~/Documents/JAD
cp /mnt/control.xml .
patch  -l control.xml control.patch

Put control.xml on the new dvd-image