Bug 308441

Summary: Confusing error message when mkinitrd run as non-root
Product: [Fedora] Fedora Reporter: Lubomir Kundrak <lkundrak>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7Keywords: EasyFix
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mkinitrd-6.0.19-4.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-16 10:08:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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