Bug 541081 - /bin/uname missing from initial ramdisk
Summary: /bin/uname missing from initial ramdisk
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Martin Gracik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-24 22:39 UTC by Michael Madore
Modified: 2013-07-04 12:47 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-09 21:45:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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