Bug 353161

Summary: remove /usr from $PATH at install
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-26 02:15: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 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.