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