Bug 46111 - up2date does not check for mkinitrd before kernel update
up2date does not check for mkinitrd before kernel update
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
6.2
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-06-26 18:26 EDT by Xander D Harkness
Modified: 2016-06-07 18:44 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-07-05 16:10:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Xander D Harkness 2001-06-26 18:26:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
I used up2date to update the kernel on a remote box (yes crazy I know) and
I got the following message:
preparing...                ###########################################
[100%]
   1:kernel                 ########################################### [
16%]
   2:kernel-doc             ########################################### [
33%]
   3:kernel-headers         ########################################### [
50%]
error: cannot remove /usr/src/linux-2.2.14 - directory not empty
   4:kernel-ibcs            ########################################### [
66%]
   5:kernel-source          ########################################### [
83%]
   6:kernel-utils           ###########################################
[100%]
Traceback (innermost last):
  File "/usr/sbin/up2date", line 831, in ?
    main()
  File "/usr/sbin/up2date", line 806, in main
    sys.exit(batchRun(onlyList, pkgNames, fullUpdate))
  File "/usr/sbin/up2date", line 596, in batchRun
    up2date.installBootLoader(kernelsToInstall)
  File "/usr/share/rhn/up2date/up2date.py", line 2222, in installBootLoader
    ret = lilocfg.installNewImages(kernelList,test=0)
  File "/usr/share/rhn/up2date/lilocfg.py", line 300, in installNewImages
    (initrd,initrdExists) = makeInitrd(newimage, "/")
  File "/usr/share/rhn/up2date/lilocfg.py", line 78, in makeInitrd
    root = instRoot)
  File "/usr/share/rhn/up2date/iutil.py", line 47, in execWithRedirect
    raise RuntimeError, command + " can not be run"
RuntimeError: /sbin/mkinitrd can not be run
[root@www i386]# /sbin/mkinitrd
bash: /sbin/mkinitrd: No such file or directory

It seems to me that up2date should see mkinitrd as a dependancy if it needs
it for this operation

How reproducible:
Didn't try


Additional info:
Comment 1 Adrian Likins 2001-07-02 22:25:00 EDT
hmm, indeed. Not sure why a machine wouldnt have mkinitrd installed,
as the kernel packages require it, so it is in the base package.

But just to be on the paranoid side, I'll add an explicit requires
to the rpm.

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