[WBEL-users] Switch over to APT

Edward Rudd eddie@omegaware.com
Mon, 27 Dec 2004 23:22:50 -0500


On Mon, 2004-12-27 at 21:21, Johnny Hughes wrote:

> > 
> One thing that CentOS does is create an RPM that contains the yum
> headers and install that from the ISO to the yum cache directory ... so
> at least all the headers for the base OS are installed.  This saves much
> time on the initial update and adds almost no time to the install.
that cool.

> Also, yum 2.1.x doesn't do headers ... so it is much faster.  But Seth
> Vidal mentioned that yum 2.1.x doesn't automatically add new kernel info
> into grub or lilo, as that is performed by mkinitrd in the 2.6 Kernel
> Fedora/RedHat versions ... so to back port yum 2.1.x to RHEL 3 clones,
> you would need to write something to update the bootloader after a
> kernel upgrade.

I thought that was done with the post-install script in the RPM package
not the dependency manager?

/me checks kernel RPM in WBEL.

yeah. The adding of the new kernel into grub/lilo is done in the
post-install script in the RPM package.. this is a process that happens
regardless of what dependency manager you run (apt, yum, up2date,
urpmi,red-carpet etc..)

cd /boot
[ -x /usr/sbin/module_upgrade ] && /usr/sbin/module_upgrade
[ -x /sbin/mkkerneldoth ] && /sbin/mkkerneldoth
[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --mkinitrd --depmod\
--install 2.4.21-27.0.1.exit 0

the /sbin/new-kernel-pkg script updates the grub and lilo configuration
files.

-- 
Edward Rudd <eddie@omegaware.com>
Website http://www.outoforder.cc/