Re: Install for modified/recompiled Kernel-Newbie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I install a recompiled kernel on certain machines in my kickstart.  What
follows may not be the best way to do it, but it does work.

I manually recompiled the kernel on a system then tarred up the directories
that I need for this new recompiled kernel.  Using NFS in the % post
section, I copy my tarfiles along with my new lilo.conf file to the
appropiate places:

cp /mnt/tmp/kernel/lilo.conf /etc
cp /mnt/tmp/kernel/vmlinuz-2.4.2-2-xy /boot
cp /mnt/tmp/kernel/System.map-2.4.2-2-xy /boot
cp /mnt/tmp/kernel/usrsrclinux242.tgz /usr/src
cp /mnt/tmp/kernel/libmodules.tgz /lib/modules

Then I untar the files and remove the tar files.  Also, I remove the old
soft links and create links to the new files (as shown below):

if [ -e /boot/vmlinuz ]; then
  rm -fr /boot/vmlinuz
fi
if [ -e /boot/System.map ]; then
  rm -fr /boot/System.map
fi
cd /boot

ln -s vmlinuz-2.4.2-2-xy vmlinuz
ln -s System.map-2.4.2-2-xy System.map

Lastly, I run /sbin/lilo because the lilo.conf file has been changed
/sbin/lilo

When the system boots up, I have a choice of booting into the normal kernel
or into my recompiled kernel.  In lilo.conf I made the default my
recompiled kernel.

Hope that helps!
Rebecca



                                                                                                                           
                    Richard Wilson                                                                                         
                    <RWilson@xxxxxxxxxxxx        To:     kickstart-list@xxxxxxxxxx                                         
                    t>                           cc:                                                                       
                    Sent by:                     Subject:     Install for modified/recompiled Kernel-Newbie                
                    kickstart-list-admin@                                                                                  
                    redhat.com                                                                                             
                                                                                                                           
                                                                                                                           
                    05/20/2002 10:35 AM                                                                                    
                    Please respond to                                                                                      
                    kickstart-list                                                                                         
                                                                                                                           
                                                                                                                           





Current Scenario:

I'm using kickstart to install about 60 machines that are part of a batch
processing system. There are also another 20 or so machines that are for
the
development environment and there should also be a QA environment. Think
over 100 machines that may require rebuilding whenever there are major
modifications, or we inherit newer equipment. So far so good, kickstart has
been the greatest thing since sliced bread. The installs happen over NFS
with a boot floppy and everything has been fine.

Because the batch processing system relies heavy on NFS mounts from a Sun
server I'm being told that I need to recompile my kernel on all current and
future machines.  These modifications are to intended to sync  the page
sizes for both the Solaris and Linux boxen.

Hoping for some recommendations on how to used a different kernel that the
one that ships on the CD. So far it seems like I have two options.....

Should I figure out a way to do this during the install via modifying
anaconda settings? [1]
Or should I cp the recompiled Kernel via NFS and then hack at the grub
config files while in the %post% section?

Also, is there any recommendations for a good book/docs that I should be
reading about the internals of kickstart? Already read the
kickstart-how-to.

[1] Probably cleaner, I'm a total newbie in this area.

Thanks in advance


          Richard





_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list







[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux