1 |
On Monday 02 May 2011 10:43:59 Mick wrote: |
2 |
> On Monday 02 May 2011 10:03:11 Thanasis wrote: |
3 |
> > I am running default/linux/amd64/10.0/no-multilib profile, and I got the |
4 |
> > following news item, after syncing this morning: |
5 |
> > |
6 |
> > # eselect news read |
7 |
> > |
8 |
> > 2011-05-01-baselayout-update |
9 |
> > |
10 |
> > Title Baselayout update |
11 |
> > Author Christian Faulhammer <fauli@g.o> |
12 |
> > Author William Hubbs <williamh@g.o> |
13 |
> > Posted 2011-05-01 |
14 |
> > Revision 1 |
15 |
> > |
16 |
> > The baselayout package provides files which all systems must have in |
17 |
> > order to function properly. You are currently using version 1.x, which |
18 |
> > has several issues. The most significant of these is that the included |
19 |
> > init scripts are written entirely in bash, which makes them slow and |
20 |
> > not very flexible. |
21 |
> > |
22 |
> > On 2011/05/08, you will see an update for sys-apps/baselayout to |
23 |
> > 2.x and a new package, sys-apps/openrc. It is recommended that you |
24 |
> > perform this update as soon as possible. |
25 |
> > |
26 |
> > Please note, after these packages are emerged, it is |
27 |
> > __Absolutely_Critical__ that you immediately update your configuration |
28 |
> > files with dispatch-conf, etc-update or a similar tool then follow the |
29 |
> > steps in the migration guide located at the following URL. |
30 |
> > http://www.gentoo.org/doc/en/openrc-migration.xml |
31 |
> > |
32 |
> > FAILURE TO FOLLOW ALL OF THESE STEPS WILL RESULT IN AN UNBOOTABLE |
33 |
> > SYSTEM! IF THIS SHOULD HAPPEN, YOU WILL NEED TO BOOT FROM A LIVE CD OR |
34 |
> > DVD, MOUNT YOUR ROOT FILE SYSTEM, CHROOT INTO THAT ENVIRONMENT AND |
35 |
> > FOLLOW THE ABOVE STEPS! |
36 |
> |
37 |
> I've been through the migration guide. In the section about udev it |
38 |
> mentions /etc/runlevels/sysinit. Is this something added by |
39 |
> baselayout2/OpenRC? I don't seem to have this in my runlevels: |
40 |
> |
41 |
> $ ls -l /etc/runlevels/ |
42 |
> total 16 |
43 |
> drwxr-xr-x 2 root root 4096 Jan 18 20:39 boot |
44 |
> drwxr-xr-x 2 root root 4096 Jun 8 2010 default |
45 |
> drwxr-xr-x 2 root root 4096 Jan 21 2010 nonetwork |
46 |
> drwxr-xr-x 2 root root 4096 Jan 21 2010 single |
47 |
|
48 |
Another thing I found, is some incongruity about the file in which the $EDITOR |
49 |
and $PAGER should be defined. |
50 |
|
51 |
The migration guide says: |
52 |
|
53 |
"The EDITOR variable is no longer found in /etc/rc.conf. Both EDITOR and PAGER |
54 |
are set by default in /etc/profile. You should change this as needed in your |
55 |
~/.bashrc (or equivalent) file or create */etc/env.d/99editor* and set the |
56 |
system default there." |
57 |
|
58 |
On the other hand the /etc/profile file seems to recommend /etc/profile.d/ |
59 |
|
60 |
"# You should override these in your ~/.bashrc (or equivalent) for per-user |
61 |
# settings. For system defaults, you can add a new file in /etc/profile.d/. |
62 |
export EDITOR=${EDITOR:-/bin/nano} |
63 |
export PAGER=${PAGER:-/usr/bin/less}" |
64 |
|
65 |
Which one is the authoritative place to define a system wide editor? |
66 |
-- |
67 |
Regards, |
68 |
Mick |