Le Fri, 08 Jul 2005 10:19:57 -0400, Chris Gianelloni a écrit :
> fsscript is a script, run after the default scripts, that makes changes
> to the filesystem and is run within the chroot.
Ok.
> livecd/overlay is an overlay over the CD, not the filesystem within the
> CD. We use this for the docs and snapshot, etc on the Universal CD to
> get things on the outside of the loop. This is for things, like, adding
> a README to the root of the CD.
>
> livecd/root_overlay overlays the files within the chroot and the CD's
> filesystem. If you want to add a working configuration for a user, then
> you would have an overlay that looks like this:
Oh, I had a really great understanding problem. Overlays are not
scripts... shame on me.
> /home/$user/.config
>
> This would copy .config to /home $user.
ok, now, I think I understand.
>> I want X is automaticaly launched at boot.
>
> This is easy. Use generic-livecd as your livecd/type (you should never
> use anything else since you are not building releases anyway)
I think, and hope my livecd-stage2 is generic based...
> and make
> sure you have X in your USE flags for livecd-stage1, when you install
> livecd-tools.
have it.
> If you want opengl support, then you will also need the opengl USE flag.
forgot it.
>> I add xdm:default to livecd/rcadd
>
> You should use this if you want opengl support:
>
> livecd/rcadd:
> x-setup|default
> xdm|default
>
> Use this if you do not:
>
> livecd/rcadd:
> mkxf86config|default
> xdm|default
I'll try that.
>> But, I have to create a xorg.conf dynamicaly.
>
> Now, these will create your xorg.conf file for you. Also, if you choose
> to use opengl, then you will need to install the nvidia and ati drivers
> during your livecd-stage2 packages for your kernels.
Of course.
>> I tought to use xorg -configure to create configuration, but I don't know
>> how to add this command (in which script) in my livecd.
>
> Bad idea.
The only one I found myself ;-)
> Try using the stuff I've already built and tested. =]
Sure.
>> In the same way, I want to add parameters of configuration during the
>> creation of the livecd (this is not at cd boot), have I to add them in
>> fsscript or root_overlay ?
>
> I don't really understand this exactly. But anything that you want
> changed should be in a fsscript *unless* it is just adding files. The
> fsscript is just a shell script that is executed by catalyst within the
> chroot.
Ok, it's more clear now.
> To update parameters during boot, you'll need to do some work, depending
> on the parameters you need to adjust. I can't really help more without
> more information.
I was talking about creating X configuration etc... that is only possible
during boot. But you already answer to that.
Le Fri, 08 Jul 2005 10:22:19 -0400, Chris Gianelloni a écrit :
>> - create a user (with livecd/users I suppose)
>
> livecd/users: cperez
of course.
I tried that, and I have something very strange.
I'm not very good at shell scripting, but when I see that, I don't find it
really normal :
livecd ~ # cat /root/.bashrc
#!/bin/bash
if [ -x /usr/bin/X ]; then
if [ -e /etc/su - chris -c startx ]; then
rm -f /etc/su - chris -c startx
su - chris -c startx
cat /etc/motd
fi
fi
"-x /usr/bin/X", I understand, but what is that :
"-e /etc/su - chris -c startx" ???
My livecd/users is "chris"
Of course, I always have an error at boot :
.bashrc: line 4: [: too many arguments
>> - add a good xfce4 configuration in $HOME of this user (which script?)
>
> livecd/root_overlay: /tmp/overlay with /home/cperez/.xcfe in it.
of course. clear.
>> during boot :
>> - create xorg configuration
>> - start x (I have to find the best way to do that)
>
> See previous email.
I only do that, I read it, I read it, and I read it again... I learn it ;-)
> If you follow the directions there, X will be auto-started. I might
> suggest avoiding the use of the xdm init script, and instead using a
> livecd/xinitrc to start X, as the build will try to execute "startx"
> automatically as the first user specified in livecd/users when using
> livecd/type generic-livecd.
I found this solution too, but if I don't use xdm, what will execute X ?
Thank you for all your help even if you can't understand all what I mean ;-)
--
Christophe PEREZ
--
gentoo-catalyst@g.o mailing list
|