The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

YUM Kernel update errors

Discussion in 'General Discussion' started by mickalo, Jul 5, 2004.

  1. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    Hello,

    we have a RH7.3 w/Cpanel and installed YUM. Attempted to update our kernel, and got the following errors:
    Code:
    Calculating available disk space - this could take a bit
    kernel-source 100 % done 
    kernel 100 % done 
    Fatal: Label "2.4.20-30.7.legacy" is too long
    kernel-smp 100 % done 
    Fatal: Label "2.4.20-30.7.legacysmp" is too long
    Kernel Updated/Installed, checking for bootloader
    Lilo found - adding kernel to lilo and making it the default
    Error installing lilo.conf  The message was:
    test install of lilo failed
    Installed:  kernel.i686 kernel-smp.i686
    Updated:  kernel-source.i386
    Transaction(s) Complete
    --------------------
    # output from lilo after update:
    # lilo -v -v
    
    Reading boot sector from /dev/sda
    Merging with /boot/boot.b
    Secondary loader: 11 sectors.
    Mapping message file /boot/message
    Message: 46 sectors.
    Boot image: /boot/vmlinuz-2.4.20-30.7.legacysmp
    Setup length is 10 sectors.
    Mapped 2263 sectors.
    Mapping RAM disk /boot/initrd-2.4.20-30.7.legacysmp.img
    RAM disk: 499 sectors.
    Fatal: Label "2.4.20-30.7.legacysmp" is too long
    Removed temporary file /boot/map~
    
    I didn't reboot the server due to this errors. should I remove the updated kernels files or is there a way to correct these errors in order for the updated kernels to take affect without causing any failures during a reboot ?? Can the lilo.conf be edited ??

    TIA,
    Mickalo
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Of course ;)

    /etc/lilo.conf

    Look for the label= line for your new kernel and change it to something a little less verbose making sure not to duplicate any other entries.
     
  3. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    Re: Re: YUM Kernel update errors

    Nothing that says label. Here is the lilo.conf prior to the update:
    Code:
    prompt
    timeout=50
    default=2.4.20-28.7smp
    boot=/dev/sda
    map=/boot/map
    install=/boot/boot.b
    message=/boot/message
    linear
    
    image=/boot/vmlinuz-2.4.20-28.7smp
    	label=2.4.20-28.7smp
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-28.7smp.img
    image=/boot/vmlinuz-2.4.20-28.7
    	label=2.4.20-28.7
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-28.7.img
    
    This is the lilo.conf after the YUM update:
    Code:
    prompt
    timeout=50
    default=2.4.20-28.7smp
    boot=/dev/sda
    map=/boot/map
    install=/boot/boot.b
    message=/boot/message
    linear
    
    image=/boot/vmlinuz-2.4.20-30.7.legacysmp
    	label=2.4.20-30.7.legacysmp
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-30.7.legacysmp.img
    image=/boot/vmlinuz-2.4.20-30.7.legacy
    	label=2.4.20-30.7.legacy
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-30.7.legacy.img
    image=/boot/vmlinuz-2.4.20-28.7smp
    	label=2.4.20-28.7smp
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-28.7smp.img
    image=/boot/vmlinuz-2.4.20-28.7
    	label=2.4.20-28.7
    	root=/dev/sda3
    	read-only
    	initrd=/boot/initrd-2.4.20-28.7.img
    
    Ok,..OOPS I see the label=**** lines, is that what your referring too... and do the actual file names in the /boot folder also need to be changed to match the changes in the lilo.conf ?

    TIA
     
  4. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Re: Re: Re: YUM Kernel update errors

    Is that a trick question? :D

    The file names will need to match what is listed in the lilo.conf (the system needs to be able to find them after all), but they will not need to match the label= value. It isn't uncommon to see label values like label=linux and label=linux.old
     
Loading...

Share This Page