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