Bug 541081

Summary: /bin/uname missing from initial ramdisk
Product: [Fedora] Fedora Reporter: Michael Madore <michael.madore>
Component: anacondaAssignee: Martin Gracik <mgracik>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: anaconda-maint-list, dmach, msivak, vanmeeuwen+fedora, wnefal+redhatbugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-09 21:45:59 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 Michael Madore 2009-11-24 22:39:49 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 Fedora/3.5.3-1.fc11 Firefox/3.5.3

I have a kickstart file which has a %pre section similar to to following:

%pre

ARCH=`uname -m`
if [ "$ARCH" == "i686" ]; then
   Do something specific to i686
fi

This no longer works when I PXE boot Fedora 12 because /bin/uname no longer exists.  I looked at upd-instroot and I see that uname is only included for s390.

Reproducible: Always

Steps to Reproduce:
1. PXE boot the system into Fedora 12 rescue mode on a system with empty hard disk.
2. Run uname from the shell

Actual Results:  
uname: command not found

Expected Results:  
The architecture should be returned.

If this is by design, I will use an alternative method determine ARCH.

Comment 1 Michael Madore 2010-06-01 13:50:30 UTC
uname is still missing in Fedora 13

Comment 2 David Cantrell 2010-07-09 21:45:59 UTC
This is by design.

uname -v == awk '{ print $3; }' /proc/version