1 |
On 20/03/2014 20:57, Tom Wijsman wrote: |
2 |
> On Sat, 22 Feb 2014 19:46:42 +0200 |
3 |
> Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
4 |
> |
5 |
>> eselect manages config options between different implementation of a |
6 |
>> thing. Usually by tweaking symlinks. Switching init OpenRC <-> SystemD |
7 |
>> involves resetting uSE flags and recompiling some fundamental stuff. |
8 |
>> That exercise is unlikely to ever go into eselect. |
9 |
> |
10 |
> Well, running systemd now I can reboot into OpenRC; it just works. |
11 |
|
12 |
How is this done? |
13 |
|
14 |
|
15 |
> |
16 |
>> The devs on gentoo-dev already nuked the idea of a gentoo profile as |
17 |
>> such, it's not worth the effort and causes an explosion of profiles. |
18 |
> |
19 |
> It's happening, `find /usr/portage/profiles/ -name '*systemd*'`; does |
20 |
> it have any consequences that are worth thinking through? |
21 |
|
22 |
As it stands now exactly, none. I only checked one profile: |
23 |
|
24 |
default/linux/amd64/13.0/desktop/kde/ |
25 |
|
26 |
and that consists of one file - parent. |
27 |
It lists .. and targets/systemd as parents. Which is easy enough as long |
28 |
as the idea of systemd with kde stays exactly like that - the strict |
29 |
union of kde and systemd profiles. Right now, a few line script can |
30 |
create those profiles, will it always be that way? |
31 |
|
32 |
What are the chances of LXDE and/or XFCE getting their own profiles like |
33 |
Gnome and KDE? If they do, and they warrant a systemd sub-profile, then |
34 |
the number of updates increases quite a lot. I've seen this kind of |
35 |
thing happen many times where the number opf combinations quickly gets |
36 |
out of control and becomes scary maintenance. |
37 |
|
38 |
It's a pity Gentoo doesn't support multiple profiles (just keep enabling |
39 |
extra till you get what you want or portage finds a conflict). That |
40 |
would make new profile settings much easier. It's probably not supported |
41 |
for the same reason most languages don;t go multiple inheritance. Oh well |
42 |
|
43 |
|
44 |
>> Conceptually, it is rather similar to switching between nouveau and |
45 |
>> nvidia. That doesn't have eselect support[1] or profiles. |
46 |
> |
47 |
> Well, running NVIDIA now I can reboot with a simple script[1] put |
48 |
> in /etc/local.d/nvidia.start (with execute permission); this works for |
49 |
> me on both OpenRC and systemd, I'd say it is easy to do. Perhaps it can |
50 |
> even be made more easy by rewriting the Xorg configuration to be device |
51 |
> aware and therefore not needing the steps shown in this script. |
52 |
> |
53 |
> [1]: https://gist.github.com/TomWij/a13abacfb74999c10957 |
54 |
|
55 |
Yeah, you'd really need to make it work with one unchanging xorg.conf. |
56 |
And that first line of code - relying on "-nvidia" being in |
57 |
/proc/cmdline - wtf is that? :-) |
58 |
|
59 |
Such, um, butcher hacks work OK on your machine but sure ain't |
60 |
|
61 |
production ready |
62 |
|
63 |
-- |
64 |
Alan McKinnon |
65 |
alan.mckinnon@×××××.com |