Yay!!  I noticed that kernel-2.2.14-15mdk includes a postinstall script
to set up the new kernel.  But alas kernel-fb-2.2.14-15mdk did not.  Any
reason why?

In any case, may I suggest the following enhancement to the postinstall
script?

   cd /boot
   mv vmlinuz vmlinuz.old
   if [ -f initrd.img ]; then
        mv initrd.img initrd.img.old
        mkinitrd -f initrd-2.2.14-15mdk.img 2.2.14-15mdk
        ln -sf initrd-2.2.14-15mdk.img initrd.img
   fi
   
   ln -sf vmlinuz-2.2.14-15mdk vmlinuz
   ln -sf System.map-2.2.14-15mdk System.map
   ln -sf module-info-2.2.14-15mdk module-info
   
   if [ -x /sbin/lilo -a -f /etc/lilo.conf ]; then
           /sbin/lilo > /dev/null 2>&1
           exit 0
   fi
   
With, of course, the following in /etc/lilo.conf:

   image=/boot/vmlinuz.old
        label=linux-old
        root=/dev/sdc3
        initrd=/boot/initrd.img.old
        append=""
        read-only

Which I think should be in there by default anyway.

The making of the initrd for the kernel would also necessitate a kernel
package pre-remove script that removed the generated
initrd-$version.img.

I am also thinking that long the lines of "scsi_hostadapter" in
/etc/conf.modules, there also needs to be a "framebuffer" so that
mkninitrd can "preload" the right framebuffer modules for the given
host.  Perhaps I will hack this in later if I get word that it would be
a welcome addition.  Alternative suggestions to having the kernel
postinstall script figure out what framebuffer modules to preload into
the initrd image are welcome of course.  :-)

Thots?
b.


--
Brian J. Murrell                              InterLinx Support Services, Inc.
North Vancouver, B.C.                                             604 983 UNIX
        Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD

Reply via email to