Package: debianutils
Version: 2.23.1
Severity: normal
File: /sbin/installkernel

When running "make INSTALL_PATH=/home/user/foo install" in a kernel tree
/sbin/installkernel is called which tries to unconditionally call mkboot
which breaks as non-root since /usr/sbin is not in the regular $PATH.

  make -C <snip>/linux-2.6.18-xen.hg O=<snip>/build-linux-2.6.18-xen_x86_64 
install
  sh <snip>/linux-2.6.18-xen.hg/arch/x86_64/boot/install.sh 2.6.18-xen \
        arch/x86_64/boot/vmlinuz System.map "<snip>/dist/install/boot"
  /sbin/installkernel: line 56: mkboot: command not found
  make[6]: *** [install] Error 127

A couple of reasonable workarounds occur to me:
 * Don't run mkboot if the user is not root;
 * Only to run mkboot if $4 (install path) is empty (==install to
   /boot);
 * Use the full path to mkboot;

I tripped over this in the xen-unstable upstream builds which install
into a staging directory, I've applied a workaround there and I guess
it's not a particularly common scenario so feel free to reprioritize as
wishlist if you want.

Thanks,
Ian.
-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debianutils depends on:
ii  libc6                         2.6.1-2    GNU C Library: Shared libraries

debianutils recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to