| 1 |
# ChangeLog for Gentoo System Intialization ("rc") scripts |
| 2 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 |
| 3 |
|
| 4 |
09 Oct 2007; Roy Marples <uberlord@gentoo.org>: |
| 5 |
|
| 6 |
netmount, localmount, halt.sh and net scripts now check OS specific flags |
| 7 |
to see if a mount is network mounted (linux = fstab, *bsd = "local" in |
| 8 |
mount options) or not, #192772. |
| 9 |
txqueuelen_eth0= now works, #190538. |
| 10 |
|
| 11 |
03 Oct 2007; Roy Marples <uberlord@gentoo.org>: |
| 12 |
|
| 13 |
librc.so and libeinfo.so now have symbol versions. |
| 14 |
Default to tunctl so we can create the device as a specific |
| 15 |
user, #194588 thanks to Jaco Kroon. |
| 16 |
|
| 17 |
28 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 18 |
|
| 19 |
rc_service_state now returns the state as a mask, which means that |
| 20 |
we can do things with just the one call making is more efficient. |
| 21 |
keymaps now sets unicode keyboard on all defined ttys, #192442 |
| 22 |
thanks to Pacho Ramos. |
| 23 |
net.sh now checks to see if root is net mounted if no predown function |
| 24 |
exists, #194074. |
| 25 |
enums are now fixed to specific values and are in UPPER CASE. |
| 26 |
|
| 27 |
26 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 28 |
|
| 29 |
rc_is_env is now rc_env_bool and just works with boolean values. |
| 30 |
errno is set when it's not a boolean or does not exist. |
| 31 |
|
| 32 |
25 Sep 2007; Mike Frysinger <vapier@gentoo.org>: |
| 33 |
|
| 34 |
Skip consolefont setup when RC_TTY_NUMBER is set to 0. |
| 35 |
|
| 36 |
Add support for describing the options in the C programs. |
| 37 |
|
| 38 |
Retain behavior where `rc-update del foo` deletes foo from all runlevels. |
| 39 |
|
| 40 |
Retain behavior where `rc-update del` warns if nothing changed. |
| 41 |
|
| 42 |
24 Sep 2007; Mike Frysinger <vapier@gentoo.org>: |
| 43 |
|
| 44 |
Do not require portmap in netmount when nolock option is used with nfs |
| 45 |
mounts and fixup the test so that it actually works. |
| 46 |
|
| 47 |
24 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 48 |
|
| 49 |
Fix pppd metric, #193574 thanks to Martin Väth. |
| 50 |
|
| 51 |
21 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 52 |
|
| 53 |
Use a pty for prefixed output instead of pipes for stdout/stderr. This |
| 54 |
is so that programs can get information about the controlling terminal. |
| 55 |
This change was triggered by bug #188506 where it's possible that |
| 56 |
stdin, stdout and stderr didn't point to a terminal but ended up on one |
| 57 |
via our pipes. Using a pty means that stdout and stderr always point to |
| 58 |
a terminal, but we lose the ability to tell them apart. |
| 59 |
If there is not a pty available then we use un-prefixed output as normal. |
| 60 |
This change has also introduced the need for a signal pipe so that |
| 61 |
SIGCHLD can exit the loop cleanly. |
| 62 |
|
| 63 |
20 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 64 |
|
| 65 |
libeinfo now works out the number of columns from stdout rather than |
| 66 |
stdin, #188506. |
| 67 |
|
| 68 |
19 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 69 |
|
| 70 |
Added the checkown applet based on the work by Renato Caldas, #192682 |
| 71 |
checkdir ensures that the specified files (or directories) are owned |
| 72 |
by the current user/group or as specified on the command line. You can |
| 73 |
optionally check permissions too. |
| 74 |
|
| 75 |
Change from /lib/rcscripts to /lib/rc and adjust our files so changing |
| 76 |
our libdir is much easier in future. This move makes sense it's so much |
| 77 |
more than a holding place for our scripts now. It also has the added |
| 78 |
benefit of not loading the splash plugin for rc4 and lower which is |
| 79 |
ABI incompatible with us now. |
| 80 |
|
| 81 |
plugin hook function is now rc_plugin_hook instead of a name based |
| 82 |
on the name of the plugin. |
| 83 |
|
| 84 |
18 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 85 |
|
| 86 |
Only mount /sys if it's not mounted, #192436. |
| 87 |
|
| 88 |
API changes! |
| 89 |
|
| 90 |
rc_ls_dir, rc_get_config and rc_get_list no longer take a starting list |
| 91 |
as a first argument. Instead, use rc_strlist_join to append or prepend |
| 92 |
the new list to an existing list. |
| 93 |
|
| 94 |
rc_strlist_add and friends now take char *** instead of char ** and |
| 95 |
return a pointer to the item added instead of the new list head. This is |
| 96 |
so we can easily tell if the item was successfully added or not instead |
| 97 |
of iterating through the list looking for it. |
| 98 |
|
| 99 |
list = rc_strlist_add (list, item); |
| 100 |
becomes |
| 101 |
rc_strlist_add (&list, item); |
| 102 |
|
| 103 |
17 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 104 |
|
| 105 |
Document the preferance of wpa_supplicant, #192828. |
| 106 |
|
| 107 |
09 Sep 2007; Mike Frysinger <vapier@gentoo.org>: |
| 108 |
|
| 109 |
Allow people to specify a list of dirs to clean in bootmisc #191807. Force |
| 110 |
the +t bit on /tmp and /var/tmp paths. |
| 111 |
|
| 112 |
04 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 113 |
|
| 114 |
start-stop-daemon now works with userids correctly when a pidfile |
| 115 |
is not specified, #191206. |
| 116 |
|
| 117 |
02 Sep 2007; Mike Frysinger <vapier@gentoo.org>: |
| 118 |
|
| 119 |
Always attempt to mount /dev/pts when devpts is available as it may appear |
| 120 |
in some 2.4 setups. |
| 121 |
|
| 122 |
* baselayout-2.0.0_rc4 (02 Sep 2007) |
| 123 |
|
| 124 |
02 Sep 2007; Roy Marples <uberlord@gentoo.org>: |
| 125 |
|
| 126 |
RC_TTY_NUMBER now defaults to 12, #190996 thanks to Pacho Ramos. |
| 127 |
|
| 128 |
31 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 129 |
|
| 130 |
Only generate dependencies for Gentoo scripts, #190547. |
| 131 |
|
| 132 |
28 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 133 |
|
| 134 |
Undocument pause action, fix --nodeps and --ifstarted, #190045. |
| 135 |
Fix ksoftlevel handling, #190420. |
| 136 |
|
| 137 |
26 Aug 2007; Mike Frysinger <vapier@gentoo.org>: |
| 138 |
|
| 139 |
Add /etc/gentoo-release to CONFIG_PROTECT_MASK. |
| 140 |
|
| 141 |
25 Aug 2007; Mike Frysinger <vapier@gentoo.org>: |
| 142 |
|
| 143 |
Make sure we list all config files in rc help output. |
| 144 |
Punt PAGER and EDITOR. People need to set this themselves now. |
| 145 |
|
| 146 |
22 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 147 |
|
| 148 |
Only open /proc/cmdline if it exists, #189686 thanks to Christian Affolter. |
| 149 |
|
| 150 |
21 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 151 |
|
| 152 |
Fix pppd getting the interface metric. |
| 153 |
|
| 154 |
* baselayout-2.0.0_rc3 (20 Aug 2007) |
| 155 |
|
| 156 |
20 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 157 |
|
| 158 |
As discussed on the -dev ml, RC_DEPEND_STRICT now defaults to yes. |
| 159 |
|
| 160 |
17 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 161 |
|
| 162 |
Stop un-needed services when changing runlevels, #189050. |
| 163 |
|
| 164 |
15 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 165 |
|
| 166 |
`config /etc/fstab' can now be used in depend() functions to show that |
| 167 |
the deptree should be regenerated if /etc/fstab has changed. |
| 168 |
Add bzr port 4155 to /etc/services, #188970 thanks to Andrew Cowie. |
| 169 |
|
| 170 |
08 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 171 |
|
| 172 |
Add help to rc-update #188170. |
| 173 |
If given a pidfile, just match on that for seeing if we have crashed |
| 174 |
or not, #186159. |
| 175 |
|
| 176 |
* baselayout-2.0.0_rc2 (04 Aug 2007) |
| 177 |
|
| 178 |
04 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 179 |
|
| 180 |
Boot properly when we cannot set an early font, #187628. |
| 181 |
rc-update works again, #187487. |
| 182 |
|
| 183 |
03 Aug 2007; Roy Marples <uberlord@gentoo.org>: |
| 184 |
|
| 185 |
Fix adding multiple IP addresses, #187526. |
| 186 |
Fix static IPv6 routes, #187514. |
| 187 |
|
| 188 |
* baselayout-2.0.0_rc1 (02 Aug 2007) |
| 189 |
|
| 190 |
01 Aug 2007; Mike Frysinger <vapier@gentoo.org>: |
| 191 |
|
| 192 |
Punt /dev/shm from default /etc/fstab as we handle it and add a helpful |
| 193 |
hint about the RC_USE_FSTAB option. |
| 194 |
|
| 195 |
31 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 196 |
|
| 197 |
All our binaries are now multicalls into rc, which makes our on disk size |
| 198 |
a lot smaller. |
| 199 |
|
| 200 |
23 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 201 |
|
| 202 |
appending noinitd=xdm will skip the xdm service when first booting, #181858. |
| 203 |
|
| 204 |
22 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 205 |
|
| 206 |
Harden gendepends.sh some more so we only capture the stdout we want from |
| 207 |
the depend function, #186072. |
| 208 |
|
| 209 |
21 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 210 |
|
| 211 |
RC_DEPEND_STRICT now controls dependency strictness. |
| 212 |
If yes then we only use services in the boot and default runlevels, |
| 213 |
regradless of service state. |
| 214 |
If no then we take into account coldplugged services and the state |
| 215 |
of currently running services. |
| 216 |
Fixes #185640. |
| 217 |
|
| 218 |
15 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 219 |
|
| 220 |
adsl module now finds the correct exe, #185276 thanks to Marcello Laganà. |
| 221 |
|
| 222 |
14 Jul 2007; Mike Frysinger <vapier@gentoo.org>: |
| 223 |
|
| 224 |
Add --remove-destination to example /dev recover command #40987. |
| 225 |
|
| 226 |
* baselayout-2.0.0_alpha4 (12 Jul 2007) |
| 227 |
|
| 228 |
11 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 229 |
|
| 230 |
Don't unmount network filesystems in localmount or halt.sh, #175602. |
| 231 |
Don't do interactive when changing init, #174141. |
| 232 |
|
| 233 |
10 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 234 |
|
| 235 |
init scripts and their extra options can now have descriptions, #184327. |
| 236 |
We no longer care about numerical runlevels, #184733. |
| 237 |
|
| 238 |
09 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 239 |
|
| 240 |
Add an option to fork ldconfig in env-update, #182794 |
| 241 |
|
| 242 |
06 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 243 |
|
| 244 |
Add and delete IPv6 addresses and routes correctly on FreeBSD, #184430 |
| 245 |
thanks to Friedrich Oslage. |
| 246 |
|
| 247 |
02 Jul 2007; Roy Marples <uberlord@gentoo.org>: |
| 248 |
|
| 249 |
Don't wait for services that were inactive, #183667 thanks to Daniel Drake |
| 250 |
|
| 251 |
30 Jun 2007; Roy Marples <uberlord@gentoo.org>: |
| 252 |
|
| 253 |
Don't set an early font if consolefont isn't in a runlevel, #183773. |
| 254 |
|
| 255 |
27 Jun 2007; Roy Marples <uberlord@gentoo.org>: |
| 256 |
|
| 257 |
Add --no-ldconfig option to env-update to match portage. |
| 258 |
|
| 259 |
26 Jun 2007; Roy Marples <uberlord@gentoo.org>: |
| 260 |
|
| 261 |
--nocolor works again, #181011 thanks to Daniel Drake. |
| 262 |
Change pwd to / for all init scripts, #181224. |
| 263 |
|
| 264 |
21 Jun 2007; Mike Frysinger <vapier@gentoo.org>: |
| 265 |
|
| 266 |
Allow urandom location to be customized #134489. |
| 267 |
|
| 268 |
02 Jun 2007; Mike Frysinger <vapier@gentoo.org>: |
| 269 |
|
| 270 |
Fix from comio for /proc/filesystems typo in localmount #180621. |
| 271 |
|
| 272 |
Use -q option with modprobe rather than sending to /dev/null. |
| 273 |
|
| 274 |
31 May 2007; Mike Frysinger <vapier@gentoo.org>: |
| 275 |
|
| 276 |
Don't warn about Factory clock when booting off of livecd. |
| 277 |
|
| 278 |
30 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 279 |
|
| 280 |
Only call systohw in clock when we don't have adjfile or we aren't UTC. |
| 281 |
Use killall5 again so we can cleanly remount / readonly, #168977 |
| 282 |
and #177689. |
| 283 |
|
| 284 |
* baselayout-2.0.0_alpha3 (14 May 2007) |
| 285 |
|
| 286 |
14 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 287 |
|
| 288 |
RC_INTERACTIVE now works, #178331. |
| 289 |
Add --startas back to s-s-d, #175980, #175981. |
| 290 |
Allow time for pidfiles to be created, #178274. |
| 291 |
Use int instead of char for getopt, #177202 #178084 thanks to drizztbsd. |
| 292 |
|
| 293 |
11 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 294 |
|
| 295 |
Store the defined random pool size, #177722 thanks to Yaroslav Isakov. |
| 296 |
Use auto for /mnt/cdrom, #177990. |
| 297 |
Use clock MONOTONIC to timeout, not localtime, #177514. |
| 298 |
|
| 299 |
08 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 300 |
|
| 301 |
When we don't have an address return 1, #176577. |
| 302 |
|
| 303 |
05 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 304 |
|
| 305 |
Fix KV_to_int working with funky kernel versions, #177197. |
| 306 |
|
| 307 |
* baselayout-2.0.0_alpha2 (04 May 2007) |
| 308 |
|
| 309 |
04 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 310 |
|
| 311 |
Fix unicode keymaps, #173528. |
| 312 |
Some fonts show the currency symbol instead of the Euro when doing |
| 313 |
AltGr-E, so we provide an easy setting to fix this. |
| 314 |
|
| 315 |
03 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 316 |
|
| 317 |
Allow ip6to4 tunnels to use any derived address, #170290. |
| 318 |
|
| 319 |
dns_sortlist and dns_options now work as documented, #175367. |
| 320 |
|
| 321 |
02 May 2007; Roy Marples <uberlord@gentoo.org>: |
| 322 |
|
| 323 |
SSD_NICELEVEL can now affect the nicelevel for daemons started |
| 324 |
by start-stop-daemon, #175397. |
| 325 |
|
| 326 |
Don't delete addresses for PPP interfaces, #176764. |
| 327 |
|
| 328 |
30 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 329 |
|
| 330 |
Stop using the [ -z "$@" ] test, use [ $# = 0 ] instead, #176554. |
| 331 |
|
| 332 |
/etc/init.d/foo start and stop no longer exit when service is fully |
| 333 |
started or stopped, #176452. |
| 334 |
|
| 335 |
27 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 336 |
|
| 337 |
env-update now respects COLON_SEPARATED and SPACE_SEPARATED env.d |
| 338 |
values, #176198. |
| 339 |
|
| 340 |
26 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 341 |
|
| 342 |
checkroot and checkfs now use more friendly generic options, #116016. |
| 343 |
|
| 344 |
25 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 345 |
|
| 346 |
We now have an alternative to buffering stdout and stderr. |
| 347 |
RC_PREFIX="yes" will put the service name as a prefix to all output |
| 348 |
made by the service. Thanks to Ciaran McCreesh for the idea. |
| 349 |
|
| 350 |
24 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 351 |
|
| 352 |
We now buffer stdout and stderr to a file and flush that when running in |
| 353 |
parallel. RC_PARALLEL_STARTUP has been renamed to RC_PARALLEL. |
| 354 |
|
| 355 |
20 Apr 2007; Mike Frysinger <vapier@gentoo.org>: |
| 356 |
|
| 357 |
Automatically mount selinuxfs on /selinux in localmount. |
| 358 |
|
| 359 |
20 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 360 |
|
| 361 |
Added the rc-abort command, #175106 thanks to Daniel Drake. |
| 362 |
|
| 363 |
Plugins now run in a forked process for extra resliance. |
| 364 |
|
| 365 |
17 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 366 |
|
| 367 |
Fix bridge, vlan and bonding modules to work together, #174792. |
| 368 |
env vars ECOLOR_GOOD and friends now override our hardcoded builtins. |
| 369 |
|
| 370 |
16 Apr 2007; Mike Frysinger <vapier@gentoo.org>: |
| 371 |
|
| 372 |
Allow addons to pass up their exit status in import_addon. |
| 373 |
|
| 374 |
Simplify /dev handling in init.sh and add mdev as an option. |
| 375 |
|
| 376 |
16 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 377 |
|
| 378 |
Punted the volumes init script. Volume handling will be handled by |
| 379 |
init script that can be run at any point, even before checkroot. |
| 380 |
|
| 381 |
Don't search for a space after interface names in /proc/net, #174792 |
| 382 |
thanks to Mike Auty. |
| 383 |
|
| 384 |
13 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 385 |
|
| 386 |
Fix module loading, #174360. |
| 387 |
s-s-d now changes group when changing user, #174362. |
| 388 |
netmask -> CIDR is worked out correctly #174341. |
| 389 |
|
| 390 |
* baselayout-2.0.0_alpha1 (11 Apr 2007) |
| 391 |
|
| 392 |
07 Apr 2007; Mike Frysinger <vapier@gentoo.org>: |
| 393 |
|
| 394 |
"modules-update" -> "update-modules". |
| 395 |
|
| 396 |
05 Apr 2007; Roy Marples <uberlord@gentoo.org>: |
| 397 |
|
| 398 |
Rewrite the core parts in C. We now provide librc so other programs can |
| 399 |
query runlevels, services and state without using bash. We also provide |
| 400 |
libeinfo so other programs can easily use our informational functions. |
| 401 |
|
| 402 |
As such, we have dropped the requirement of using bash as the init script |
| 403 |
shell. We now use /bin/sh and have strived to make the scripts as portable |
| 404 |
as possible. Shells that work are bash and dash. busybox works provided |
| 405 |
you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you |
| 406 |
should disable find too. |
| 407 |
zsh and ksh do not work at this time. |
| 408 |
|
| 409 |
Networking support is currently being re-vamped also as it was heavily bash |
| 410 |
array based. As such, a new config format is available like so |
| 411 |
config_eth0="1.2.3.4/24 5.6.7.8/16" |
| 412 |
or like so |
| 413 |
config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'" |
| 414 |
|
| 415 |
We will still support the old bash array format provided that /bin/sh IS |
| 416 |
a link it bash. |
| 417 |
|
| 418 |
ChangeLog for baselayout-1 can be found in our SVN repo. |