Yellow Dog Linux General

TOPIC: Updating yaboot to use a new kernel



Introduction
After installing a new kernel, most likely via yum, you must edit yaboot to include this new kernel in the boot menu.


Execution
  1. Find the filenames for the new kernel components: kernels are installed in /boot, so list the files there and locate the latest 'vmlinux'.
    	[root@aj-pb ~]# ls -lt /boot/
    	total 13028
    	-rwxr-xr-x  1 root root 4748956 Jul 28 11:31 vmlinux-2.6.12-3.ydl.1
    	-rw-r--r--  1 root root   37494 Jul 28 11:21 config-2.6.12-3.ydl.1
    	-rw-r--r--  1 root root  871388 Jul 28 11:21 System.map-2.6.12-3.ydl.1
    	-rw-r--r--  1 root root 1355066 Jul 28 11:21 initrd-2.6.12-3.ydl.1.img
    	-rw-r--r--  1 root root  609863 Jun 10 16:22 initrd-2.6.12-0.ydl.4.img
    	-rwxr-xr-x  1 root root 4753052 May 24 11:27 vmlinux-2.6.12-0.ydl.4
    	-rw-r--r--  1 root root   37387 May 24 11:18 config-2.6.12-0.ydl.4
    	-rw-r--r--  1 root root  870981 May 24 11:18 System.map-2.6.12-0.ydl.4
    
    ... I used 'ls -lt' to produce a detailed listing, sorted by creation time. You can see that the 2.6.12-3.ydl.1 version of vmlinux, config, System.map, and initrd are the most recent set to be installed.

  2. Modify yaboot.conf:
    nano /etc/yaboot.conf [ENTER]

  3. Create a new entry at the bottom for your new kernel. It is easiest to copy and paste an existing entry and modify a few lines (image=, label=, initrd=). Since the latest kernel I installed was 2.6.12-3.ydl.1, I want to make sure the files for initrd and image are correct, and give this new entry a unique label:
    	image=/boot/vmlinux-2.6.12-3.ydl.1
    		label=linux-test
    		read-only
    		initrd=/boot/initrd-2.6.12-3.ydl.1.img
    		root=/dev/hda4
    		append="rhgb quiet"
    	
  4. Commit the changes:
    ybin [ENTER]

  5. Reboot.
This HOWTO was created by AJ Hawks, Terra Soft Solutions