Red Hat Bugzilla – Bug 506063
kernel executes scripts in /etc/profile.d/ during startup
Last modified: 2014-03-16 23:19:01 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
It's probably an upstart problem...
More likely one of the init scripts. Upstart doesn't execute any raw script files.
What are the errors you see?
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".
Thank you, but *what are the errors* that you see? Specifics are nice.
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
*** This bug has been marked as a duplicate of bug 482888 ***