Bug 308441 - Confusing error message when mkinitrd run as non-root
Summary: Confusing error message when mkinitrd run as non-root
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-27 07:56 UTC by Lubomir Kundrak
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: mkinitrd-6.0.19-4.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-16 10:08:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lubomir Kundrak 2007-09-27 07:56:57 UTC
Description of problem:

  27 if [ $UID != 0 ]; then
  28     error "mkinitrd must be run as root."
  29     exit 1
  30 fi

This happens within the very first lines of the mkinitrd script, prior to
"error" function being defined, which results in something like this:

$ mkinitrd
/sbin/mkinitrd: line 28: error: command not found
$

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

mkinitrd-6.0.9-7.1

Comment 1 Lubomir Kundrak 2007-11-16 10:08:03 UTC
This seems fixed in mkinitrd-6.0.19-4.fc8


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