Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switching to systemd: /etc/profile is ignored?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
joeklow
n00b
n00b


Joined: 23 Jan 2011
Posts: 46

PostPosted: Sat May 17, 2014 10:08 am    Post subject: Switching to systemd: /etc/profile is ignored? Reply with quote

Hi all.

After switching from openrc to sys-apps/systemd-212r4, I see that /etc/profile isn't read/applied at the time when console login is available; POSIX locale is set instead of en_US.UTF-8; also the switch affected LXDE (it attempts to start default, non-LXDE openbox, when /etc/profile isn't read) and numerous other things.
_________________
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Sat May 17, 2014 10:09 am    Post subject: Reply with quote

Hello,

This is more related to portage : the profile should be now in /etc/portage
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat May 17, 2014 1:24 pm    Post subject: Reply with quote

Has /etc/profile really moved to /etc/portage? Surely not - what happens on non-Gentoo systems
without that directory? Did you mean /etc/make.conf?

Will
Back to top
View user's profile Send private message
joeklow
n00b
n00b


Joined: 23 Jan 2011
Posts: 46

PostPosted: Sat May 17, 2014 7:25 pm    Post subject: Reply with quote

XavierMiller wrote:
Hello,

This is more related to portage : the profile should be now in /etc/portage


/etc/profile:

# /etc/profile: login shell setup
#
# That this file is used by any Bourne-shell derivative to setup the
# environment for login shells.
#


How does that relates to portage? And that /etc/portage/profile/ is definitely not meant for bash environment configs.

Anyway.. the system I've switched to systemd is a very old one.. I think it dates up to '00's, and it may have lost 1-2 configs per etc-update / dispatch-conf / moving across harddrives, and it has a lot of small problems here-there, but
the fact: sourcing /etc/profile before startx solves a number of strange problems so I wonder where settings from /etc/profile.env (sourced by /etc/profile), etc, should be put.
_________________
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Sat May 17, 2014 7:47 pm    Post subject: Reply with quote

oh, sorry... I was completely wrong. Indeed /etc/profile is the shell profile, and not portage's profile :oops:
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
joeklow
n00b
n00b


Joined: 23 Jan 2011
Posts: 46

PostPosted: Mon May 19, 2014 9:08 am    Post subject: Reply with quote

So how I do migrate LC_ALL and other exports set by profile.env to systemd?
_________________
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum