Bug 112780 - kernel-unsupported cannot find depmod during kickstart
Summary: kernel-unsupported cannot find depmod during kickstart
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel
Version: 3.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-31 19:26 UTC by Brian Long
Modified: 2007-11-30 22:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-02 12:18:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brian Long 2003-12-31 19:26:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030807

Description of problem:
When I add kernel-unsupported to my kickstart, it gives the following
error:
Installing kernel-unsupported-2.4.21-4.0.1.EL.i686.
/var/tmp/rpm-tmp.94934: line 1: depmod: command not found
error: %post(kernel-unsupported-2.4.21-4.0.1.EL) scriptlet failed,
exit status 127


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Add kernel-unsupported to kickstart.
2. Look at install.log after the kickstart.
3.
    

Actual Results:  Error message above

Expected Results:  Kernel-unsupported installs cleanly.

Additional info:

rpm -qp --requires kernel-unsupported-2.4.21-4.0.1.EL.i686.rpm only
lists /bin/sh and rpmlib.  It should list a requirement for modutils.

Comment 1 Brian Long 2003-12-31 19:34:49 UTC
kernel-unsupported should probably require kernel so kickstart will
work.  Otherwise, kernel-unsupported could get installed before kernel.

Comment 2 Arjan van de Ven 2004-01-01 09:57:04 UTC
kernel-unsupported HAS to be installed before kernel actually...
As for depmod; the kernel-unsupported package does:

[ -x /sbin/depmod ] && /sbin/depmod -ae

so should only run depmod if it exists...

but why do you install it at all ?????

Comment 3 Brian Long 2004-01-02 12:18:26 UTC
FYI, kernel-unsupported-2.4.21-4.0.1.EL.i686.rpm just runs depmod -ae
without testing for its existence.

rpm -qp --scripts
/export/linux/ftp/pub/linux/redhat/linux/updates/enterprise/3/en/os/i686/kernel-unsupported-2.4.21-4.0.1.EL.i686.rpm
postinstall scriptlet (through /bin/sh):
depmod -ae

Maybe the version you have in CVS tests for depmod, but the latest
published errata does not.  Anyways, sounds like you've got it fixed
in CVS so we can close this.  I'll pull it from our internal distro.


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