Hi, I'm having a little trouble getting autoyast to install the desired kernel. I've compiled and packaged 'k_smp_vanilla' and 'k_deflt_vanilla' and would like to install them instead of the stock stuff, but it installs k_smp instead. I'm using autoyast2-2.6.41-3 on SuSE 8.1. Here's the section from my config: <software> <base>Minimal</base> <kernel>k_smp_vanilla</kernel> <packages config:type="list"> <package>compat</package> <package>apt</package> <package>cfengine</package> <package>xntp</package> </packages> </software> I'd like to avoid using a chroot script to do this, if possible. Any help would be appreciated. Regards, Ben
On Sat, 27 Mar 2004, Benjamin P Myers wrote:
Date: Sat, 27 Mar 2004 17:39:06 -0600 From: Benjamin P Myers <dative@sukrahelitek.com> To: suse-autoinstall@suse.com Subject: [suse-autoinstall] custom kernel
Hi,
I'm having a little trouble getting autoyast to install the desired kernel. I've compiled and packaged 'k_smp_vanilla' and 'k_deflt_vanilla' and would like to install them instead of the stock stuff, but it installs k_smp instead. I'm using autoyast2-2.6.41-3 on SuSE 8.1. Here's the section from my config:
<software> <base>Minimal</base> <kernel>k_smp_vanilla</kernel> <packages config:type="list"> <package>compat</package> <package>apt</package> <package>cfengine</package> <package>xntp</package> </packages> </software>
I'd like to avoid using a chroot script to do this, if possible. Any help would be appreciated.
Is the rpm part of your installation source and did you recreate the package database using /usr/lib/YaST2/bin/create_package_descr? Regards Hubba
On Sunday 28 March 2004 10:27 am, Hubertus Haniel wrote:
Is the rpm part of your installation source and did you recreate the package database using /usr/lib/YaST2/bin/create_package_descr?
Yep, via a symlink: //suse/i386/8.1/suse/i386/k_smp_vanilla-2.4.25-1.i386.rpm -> ../../../custom/8.1/k_smp_vanilla-2.4.25-1.i386.rpm I am able to install it from yast2 once the install process is over, but of course would prefer to avoid the extra reboot. Any other suggestions? Thanks kindly, Ben
On Sat, 27 Mar 2004, Benjamin P Myers wrote:
Date: Sat, 27 Mar 2004 17:39:06 -0600 From: Benjamin P Myers <dative@sukrahelitek.com> To: suse-autoinstall@suse.com Subject: [suse-autoinstall] custom kernel
Hi,
I'm having a little trouble getting autoyast to install the desired kernel. I've compiled and packaged 'k_smp_vanilla' and 'k_deflt_vanilla' and would like to install them instead of the stock stuff, but it installs k_smp instead. I'm using autoyast2-2.6.41-3 on SuSE 8.1. Here's the section from my config:
<software> <base>Minimal</base> <kernel>k_smp_vanilla</kernel> <packages config:type="list"> <package>compat</package> <package>apt</package> <package>cfengine</package> <package>xntp</package> </packages> </software>
I'd like to avoid using a chroot script to do this, if possible. Any help would be appreciated.
Benjamin P Myers wrote:
Yep, via a symlink:
//suse/i386/8.1/suse/i386/k_smp_vanilla-2.4.25-1.i386.rpm -> ../../../custom/8.1/k_smp_vanilla-2.4.25-1.i386.rpm
And does an entry for k_smp_vanilla indeed show up in the ../suse/setup/descr/packages file on your installation source? -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: -4054 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
On Tuesday 30 March 2004 06:02 am, Frank Steiner wrote:
And does an entry for k_smp_vanilla indeed show up in the ../suse/setup/descr/packages file on your installation source?
It does. I've pasted it in at the end of the email. Since rpm created it as an i386 rpm i created another directory in i386/8.1/suse: /ftp/pub/suse/i386/8.1/suse # ls . .. i386 i586 i686 noarch nosrc setup src the k_smp_vanilla rpm is in i386. For kicks I tried a chroot script: <chroot-scripts config:type="list"/> <script> <filename>kernel</filename> <interpreter>shell</interpreter> <source> <![CDATA[#!/bin/sh /bin/rpm -e k_smp /bin/rpm -e k_deflt /sbin/yast2 sw_single install k_smp_vanilla ]]> </source> </script> The script itself works fine after the install has finished, but for some reason it didn't run during the install. I couldn't find any log files that suggested it had run, and k_smp was still installed. Thanks, -Ben ##---------------------------------------- =Pkg: k_smp_vanilla 2.4.25 1 i386 +Req: /sbin/mkinitrd /bin/cp /bin/sed /bin/touch /bin/awk /bin/sh -Req: +Prq: /sbin/mkinitrd /bin/cp /bin/sed /bin/touch /bin/awk /bin/sh -Prq: +Prv: k_smp_24 k_smp_22 kernel -Prv: +Obs: k_smp_24 k_smp_22 -Obs: =Grp: System/Kernel =Lic: GPL =Src: k_smp_vanilla 2.4.25 1 src =Tim: 1080424615 =Loc: 1 k_smp_vanilla-2.4.25-1.i386.rpm =Siz: 13161313 27403388 ##----------------------------------------
Benjamin P Myers wrote:
Hi,
I'm having a little trouble getting autoyast to install the desired kernel. I've compiled and packaged 'k_smp_vanilla' and 'k_deflt_vanilla' and would like to install them instead of the stock stuff, but it installs k_smp instead. I'm using autoyast2-2.6.41-3 on SuSE 8.1. Here's the section from my config:
The version number here does not say anything, cause this is only installed later in process. If I remember correctly there was a bug in SuSE Linux 8.1 and to fix it you have to integrate the above rpm into the installation system image boot/root on the CD. For SLES, this issue is resolved with SP3. Anas
<software> <base>Minimal</base> <kernel>k_smp_vanilla</kernel> <packages config:type="list"> <package>compat</package> <package>apt</package> <package>cfengine</package> <package>xntp</package> </packages> </software>
I'd like to avoid using a chroot script to do this, if possible. Any help would be appreciated.
Regards, Ben
participants (4)
-
Anas Nashif
-
Benjamin P Myers
-
Frank Steiner
-
Hubertus Haniel