Bug 81010

Summary: no dependency on /boot/boot.b (owned by package lilo)
Product: [Retired] Red Hat Linux Reporter: Dries Verachtert <dries>
Component: mkinitrdAssignee: Erik Troan <ewt>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: aab
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-06 06:03:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dries Verachtert 2003-01-03 13:48:36 UTC
Description of problem: 
The kernel package doesn't have dependencies on lilo. 
If you install the kernel package (kernel-2.4.18-19.8.0.i686.rpm) without lilo, rpm gives the 
following error (probably from the scripts):  
grubby: unable to open /boot/boot.b: No such file or directory 
grubby fatal error: unable to find a suitable template 
The file /boot/boot.b belongs to the package lilo so kernel should depend on lilo i guess. 
Version-Release number of selected component (if applicable): 
tested with kernel-2.4.18-19.8.0.i686.rpm, lilo-21.4.4-20.i386.rpm (redhat 8.0 with updates) 
How reproducible: 
every time 
I can provide you with a script if you wish. 
Steps to Reproduce: 
1. start the installation of a new rootfilesystem in a directory (for example for creating a 
bootable cd): ROOT =/tmp/root , mkdir -p $ROOT/var/lib/rpm ; rpm --initdb --root=${ROOT} 
2. install all rpms needed to satisfy the dependencies of kernel 
3. install the kernel rpm 
Actual results: 
error from the post-install script (i think) of the kernel rpm 
Expected results: 
no errors :-) 
a dependency on lilo 
Additional info:

Comment 1 Jeremy Katz 2003-01-06 06:03:38 UTC
This is because you have a lilo.conf in your chroot which makes it appear as
though lilo is the boot loade rbeing used even though you don't have lilo
installed.  Which makes the error perfectly reasonable because grubby does try
to make sure you continue to have a working boot loader after upgrading kernels.

Comment 2 Andrew Burgess 2004-10-25 03:43:18 UTC
I'm using FC2, removed lilo long ago and still have a lilo.conf file 
(and I get this error). Since I assume 'rpm -e lilo' did not remove 
(or rename) the file perhaps grubby should check something else to 
prove that lilo is being used? I renamed lilo.conf and now the error 
is gone. Thanks!