Gentoo Archives: gentoo-catalyst

From: Christophe PEREZ <christophe.perez@×××××××.com>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] Re: livecd-stage1 pkgconfig
Date: Thu, 14 Jul 2005 18:07:31
Message-Id: pan.2005.07.14.18.06.48.841694@novazur.fr
In Reply to: [gentoo-catalyst] Re: livecd-stage1 pkgconfig by Christophe PEREZ
1 Le Thu, 14 Jul 2005 01:03:36 -0400, Christophe PEREZ a écrit :
2
3 > Hi,
4 >
5 > I've got a little problem under X.
6 > My locale is not good.
7 >
8 > I have $ cat /etc/env.d/02local
9 > LANG="fr_FR@euro"
10 >
11 > For root, at boot, it's ok, I have :
12 > LANG=fr_FR@euro
13 > LC_CTYPE="fr_FR@euro"
14 > ....
15 >
16 > But, after root started X by its .bashrc (su - user -c startx), I have :
17 > LANG=
18 > LC_CTYPE="POSIX"
19 > ....
20 >
21 > I don't understand why.
22 >
23 > If someone can help me, please.
24
25 Found !
26 /etc/profile is not sourced as with /etc/X11/startDM.sh for example.
27 So, one simple solution is to add it to my /home/user/.xinitrc
28 Another solution could be to modify
29 /usr/lib/catalyst/livecd/runscript-support/livecdfs-update.sh
30
31 --- livecdfs-update.sh.orig 2005-07-14 14:02:12.000000000 -0400
32 +++ livecdfs-update.sh 2005-07-14 14:03:05.000000000 -0400
33 @@ -79,7 +79,7 @@
34 if [ -n "${clst_livecd_users}" -a -e /etc/startx ]
35 then
36 first_user=$(echo ${clst_livecd_users} | cut -d' ' -f1)
37 - sed -i "s/##STARTX/su - $first_user -c startx/" /root/.bashrc
38 + sed -i "s/##STARTX/su - $first_user -c \"source /etc/profile && startx\"/" /root/.bashrc
39 fi
40
41 # setup dhcp on all detected ethernet devices
42
43
44 --
45 Christophe PEREZ
46 --
47 gentoo-catalyst@g.o mailing list

Replies

Subject Author
Re: [gentoo-catalyst] Re: livecd-stage1 pkgconfig Chris Gianelloni <wolf31o2@g.o>