mickalo

Well-Known Member
Apr 16, 2002
782
5
318
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
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
Originally posted by mickalo
Can the lilo.conf be edited ??

TIA,
Mickalo
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.
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Re: Re: YUM Kernel update errors

Originally posted by SarcNBit
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.
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
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
Re: Re: Re: YUM Kernel update errors

Originally posted by mickalo
do the actual file names in the /boot folder also need to be changed to match the changes in the lilo.conf ?

TIA
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