Bug 353161 - remove /usr from $PATH at install
Summary: remove /usr from $PATH at install
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-25 20:01 UTC by John Reiser
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-26 02:15:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2007-10-25 20:01:03 UTC
Description of problem: 1% of all system calls during an install are to lookup
filenames in /usr/... that cannot exist because there is no /usr.


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


How reproducible: always


Steps to Reproduce:
1. as soon as vtty2 becomes available:
strace -f -o '|gzip' -p <pid-of-anaconda>  > strace.out &
(you have to provide strace on a USB flash memory device before boot, and mount
the device yourself.)
2. look at strace.out (63MB compressed, 1GB uncompressed) for ENOENT
3.
  
Actual results:
13,238,719  system calls
   467,222  ENOENT
   134,782  "/usr/..." {==> ENOENT]


Expected results: very few lookups involving "/usr/...:


Additional info:

Comment 1 John Reiser 2007-10-25 20:42:24 UTC
Also set LD_LIBRARY_PATH explicitly if not already set.  The default is to have
LD_LIBRARY_PATH unset in the shell environment, which causes ld-linux.so.2 to
use "/lib:/usr/lib".

Comment 2 John Reiser 2007-10-26 02:15:59 UTC
I forgot about chroot("/mnt/sysimage").  Instead of a general problem, there may
only be special cases.


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