Bug 506063 - kernel executes scripts in /etc/profile.d/ during startup
kernel executes scripts in /etc/profile.d/ during startup
Status: CLOSED DUPLICATE of bug 482888
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-06-15 08:55 EDT by Vadym Chepkov
Modified: 2014-03-16 23:19 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-06-16 17:25:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Vadym Chepkov 2009-06-15 08:55:50 EDT
Some kernel process during startup executes scripts in /etc/profile.d/
I usually have a separate /usr file system, so I noticed failure messages after 'audit policy loaded' and before 'Welcome to Fedora'. 
I believe /etc/profile.d/ scripts should be executed only by login sessions
Comment 1 Chuck Ebbert 2009-06-16 01:29:03 EDT
It's probably an upstart problem...
Comment 2 Casey Dahlin 2009-06-16 09:56:32 EDT
More likely one of the init scripts. Upstart doesn't execute any raw script files.
Comment 3 Bill Nottingham 2009-06-16 12:01:38 EDT
What are the errors you see?
Comment 4 Vadym Chepkov 2009-06-16 13:02:51 EDT
I see lot's of errors because /usr is not mounted yet, but that not the major concern, I don't think the scripts in /etc/profile.d/ should be executed at all during startup. 
I don't think initscrits are to blame though, as I indicated it happens way before, before 'Welcome to Fedora appears".
Comment 5 Bill Nottingham 2009-06-16 13:09:26 EDT
Thank you, but *what are the errors* that you see? Specifics are nice.
Comment 6 Vadym Chepkov 2009-06-16 14:02:47 EDT
Sorry, I thought this is something easily reproducible. 

I can't grab output without serial console attached and it scrolls very fast, but it something like this:

/etc/profile.d/lang.sh setlocale LC_COLLATE can not change locale, files not found

lots of similar, but I take it back, it seem only this one script, lang.sh, gets executed, not all files from profile.d
Comment 7 Bill Nottingham 2009-06-16 17:25:58 EDT

*** This bug has been marked as a duplicate of bug 482888 ***

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