Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: Gentoo-Dev <gentoo-dev@g.o>
Cc: Daniel Robbins <drobbins@g.o>, Bob Johnson <livewire@g.o>, Jay Pfeifer <pfeifer@g.o>
Subject: [gentoo-dev] baselayout-1.8.6.7
Date: Mon, 12 May 2003 00:01:13
Message-Id: 1052697634.22183.26.camel@nosferatu.lan
1 Hiya
2
3 I have commited a new version of baselayout ... please test as
4 a lot of things changed.
5
6 New features/improvements to note:
7 - Updated the dependency system to try and touch files less.
8 For example, dependencies are calculated in runscript.sh
9 now without the symlink method, but rather with env variables.
10 Also, all helper scripts should be sourced only once for
11 any series of services started, or during a runlevel change.
12 - Supports starting services in parallel (need to set
13 'RC_PARALLEL_STARTUP="yes"' in /etc/conf.d/rc). There are
14 still a few issues with it, namely it do not sync messages
15 for services in order, but I am working on that.
16 - Lots of fixes.
17
18 The main purpose of this release is speed, so I would like to
19 get feedback on that. Also, if anything seems to behave differently
20 than expected. please let me know.
21
22 NOTE: be sure to run env-update to catch all changes!
23
24 Roadmap:
25 - Get all issues with the parallel startup resolved. First
26 part of this will be to see if its possible to get a
27 message system going that will output properly (and not
28 out of order) without too much overhead.
29 - Add bootsplash support (work already done by Jay Pfeifer and
30 Bob Johnson).
31 - A full (more sane) rewrite of rc-daemon.sh, and then actually
32 getting rc-scripts to use it.
33 - A rewrite of the networking stuff. Wout did offer to start on
34 this, so I will check with him, and if not, at least try to get
35 a more modular (being able to add routing, etc modules to each
36 net.* service individually) setup going.
37
38 Full ChangeLog:
39 -------------------------------------------------------------------------
40 * rc-scripts 1.4.3.7 (11 May 2003)
41
42 11 May 2003; Martin Schlemmer <azarah@g.o>:
43
44 Too many things to remember, so here is changes of note:
45 - More changes to gendepend.awk. This basically modifies it to not
46 use
47 symlinks in $svcdir/{need,use,before,after,provide} anymore, but
48 rather
49 create a file that can be sourced. Seems to speedup things
50 nicely.
51 - Add /sbin/rc-services.sh. This is basically a module to get
52 dependency
53 info from the new $svcdir/deptree, and some other new service
54 functions.
55 - Modify the whole works to *only* source all needed files once.
56 This
57 includes /sbin/{functions.sh,rc-services.sh,rc-daemon.sh}. Also
58 rc-services.sh will only source $svcdir/deptree once.
59 /sbin/runscript.sh
60 is sourced more than once (actually each time a service is started
61 or
62 stopped, but is is cut down much). Also seems to speed things up
63 again.
64 - Fix a long outstanding bug in gendepend.awk that caused the 'net'
65 dependency to not be actually used in shutdown, causing the
66 services
67 needing it to be stoped before net.* services.
68 - Add the RC_PARALLEL_STARTUP variable, with
69 schedule_service_startup() to
70 /sbin/rc-services.sh and /etc/conf.d/rc. This is experimental
71 parallel
72 startup of services, and seems to work nicely. Only issues to
73 date is
74 that printing of messages is not synced, and a race very
75 intermittantly
76 that causes a service to be started when it was already scheduled.
77 - Add a new dependency type 'parallel' that can be used to control
78 if a
79 service can be started in paralled or not. Possible arguments is
80 "yes"
81 or "no"; if it is not present, it is considered as "yes":
82
83 depend() {
84 parallel yes|no
85 }
86
87 Modified cachedepend.awk, gendepend.awk and /sbin/rc-services.sh.
88 - Fix the 'single' runlevel to actually work properly, and without a
89 /etc/runlevels/single directory.
90 - Remove the BOOT variable, and update /sbin/rc to set SOFTLEVEL
91 properly.
92 Fix /etc/init.d/{checkroot,bootmisc} to use SOFTLEVEL instead of
93 BOOT.
94
95 08 May 2003; Martin Schlemmer <azarah@g.o>:
96
97 Major rework of /lib/rcscript/awk/gendepend.awk, cleaning it up
98 nicely,
99 and adding more sanity checks.
100
101 04 May 2003; Martin Schlemmer <azarah@g.o>:
102
103 Revert /etc/init.d/hostname the way it was, as it should be the
104 user's
105 choice if he want to have a FQDN in there or not, bug #14946.
106
107 Add /etc/init.d/domainname for those that want to use it.
108
109 29 Apr 2003; Martin Schlemmer <azarah@g.o>:
110
111 Change the root check back the way it was, else it breaks with non
112 bash
113 shells; modified /etc/profile.
114
115 29 Apr 2003; Martin Schlemmer <azarah@g.o>:
116
117 Change test in /etc/profile for root to '[ "$EUID" -eq 0 ]', bug
118 #20140.
119
120 27 Apr 2003; Martin Schlemmer <azarah@g.o>:
121
122 Add various patches from Rachel Holmes <rach@×××.net>:
123
124 Dropped use of 'cat' in bash scripts, '$(<$file)' is there for
125 that
126 purpose. Modified:
127
128 /etc/init.d/net.ppp0
129 /etc/init.d/nscd
130 /sbin/functions.sh
131 /sbin/rc
132 /sbin/rc-daemon.sh
133 /sbin/rc-envupdate.sh.bash
134 /sbin/runscript.sh
135
136 Exchanged some gratuitous use of awk for grep. Awk is a little
137 resource
138 hungry just for a simple test. (I [azarah] did not apply the
139 changes to
140 tests for 'devfs', as having 'usbdevfs' in the equation will break
141 things). Modified /sbin/rc for this.
142
143 Gentoo enforces having /proc, so uname -r is a little redundant
144 when the
145 information is available without an external command. Modified:
146
147 /etc/init.d/modules
148 /etc/init.d/serial
149 /sbin/functions.sh
150 /sbin/modules-update
151
152 Changed 'id -u' commands to use $EUID in bash executed scripts,
153 same
154 result no extra command. Modified:
155
156 /sbin/rc-envupdate.sh
157 /sbin/rc-envupdate.sh.bash
158 /sbin/rc-update
159
160 Removed all the cat sections, and the separate echo sections. The
161 output
162 is _exactly_ the same, minus some spare spaces that have been
163 removed.
164 Fourfold speed increase in the (granted flimsy) tests I have done.
165 Modified /sbin/rc-help.sh for this.
166
167 Final remaining 'cat' commands removed, in favour of using bash's
168 internal
169 '$(< )' or 'echo'. Use of echo leads the way to future support
170 for bash's
171 i18n anyway. Modified:
172
173 /sbin/rc
174 /sbin/rc-envupdate.sh
175 /sbin/rc-envupdate.sh.bash
176 ----------------------------------------------------------------------
177
178
179 Regards,
180
181 --
182
183 Martin Schlemmer
184 Gentoo Linux Developer, Desktop/System Team Developer
185 Cape Town, South Africa

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-dev] Re: baselayout-1.8.6.7 Daniel Robbins <drobbins@g.o>
[gentoo-dev] Re: baselayout-1.8.6.7 Sebastian Bergmann <sb@××××××××××××××××××.de>
Re: [gentoo-dev] baselayout-1.8.6.7 Matthias Liertzer <linux@××××××××.at>
Re: [gentoo-dev] baselayout-1.8.6.7 YAMAKURA Makoto <makoto@×××××××××××.jp> (=?iso-2022-jp?B?GyRCOzNBUhsoQiAbJEI/PxsoQg==?=)