Bug 32833 - installkernel overrides INSTALL_PATH.
Summary: installkernel overrides INSTALL_PATH.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-23 17:32 UTC by Mikkel L. Ellertson
Modified: 2007-04-18 16:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-22 02:20:51 UTC
Embargoed:


Attachments (Terms of Use)

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...


Note You need to log in before you can comment on or make changes to this bug.