Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95720 - [debianutils] kernel 'make install' fails if PATH does not contain /usr/sbin
Summary: [debianutils] kernel 'make install' fails if PATH does not contain /usr/sbin
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Other
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 14:29 UTC by Kir Kolyshkin
Modified: 2005-06-16 16:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kir Kolyshkin 2005-06-10 14:29:32 UTC
When I run 'make install' to install kernel, it fails with the following error:

# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.8.1-virtuozzo/arch/i386/boot/install.sh 2.6.8-022test023-up arch/i386/boot/bzImage System.map "/boot"
/sbin/installkernel: line 60: mkboot: command not found
make[1]: *** [install] Error 127
make: *** [install] Error 2

The problem is I used 'sudo -s' to become root, thus my $PATH does not contain /sbin and /usr/sbin entries, and mkboot in installed to /usr/sbin:

Thus, I believe, it is needed to patch /sbin/installkernel in order for it to call mkboot with the full path, e.g. the last line of /sbin/installkernel should look like this:

/usr/sbin/mkboot -i ${dir}/${img}-${ver}
Comment 1 Kir Kolyshkin 2005-06-10 14:36:45 UTC
Alternative (and much less appealing to me) way to fix it is to add

PATH=$PATH:/sbin:/usr/sbin

somewhere at the beginning of /sbin/installkernel script (the same way as
/usr/sbin/mkboot does).
Comment 2 SpanKY gentoo-dev 2005-06-16 16:11:33 UTC
since we dont patch debianutils but take it directly from Debian this should be
e-mailed to their bug tracker