Bug 32833

Summary: installkernel overrides INSTALL_PATH.
Product: [Retired] Red Hat Linux Reporter: Mikkel L. Ellertson <mikkel>
Component: mkinitrdAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: jwright
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-22 02:20:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikkel L. Ellertson 2001-03-23 17:32:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.18K7 i686)


When you compile your own kernel, installkernel will override the
INSTALL_PATH varable if you run "make install".  (Installkernel is
installed as part of the kernel RPM.)  Having the new kernel end up in
/boot is fine if you are compiling a new kernel for the current machine,
but it is a problem if you are compiling it for another machine, especialy
if you are building the kernel as root.

Reproducible: Always
Steps to Reproduce:
1.Install a stock kernel.
2.Set INSTALL_PATH to anything except /boot.
3.Run "make install" in the root directory of the kernel source.
	

Actual Results:  The new kernel ends up in /boot.

Expected Results:  The new kernel ends up in directory pointed to by
INSTALL_PATH.


In /sbin/installkernel, change:

INSTALL_PATH=/boot
	to
if [ -z $INSTALL_PATH ] ; then
    INSTALL_PATH=/boot
fi

Comment 1 Jim Wright 2002-05-22 02:20:45 UTC
bug still present in 7.2 and in 7.3

also, /sbin/installkernel is now owned by mkinitrd and not kernel

Comment 2 Erik Troan 2002-05-22 16:48:00 UTC
fixed for mkinitrd 3.3.12 -- we don't reconfigure the bootloader if
INSTALL_PATH != "/boot" though...