Roy Marples
c2648ca5f5
Makefile SH variable now tweaks the default shell used by our scripts.
2008-02-27 20:29:32 +00:00
Roy Marples
5ddd32c06c
Allow fsck to be multiplexed.
2008-02-20 00:33:38 +00:00
Roy Marples
e1e36b2872
keywords -> keyword
2008-02-19 14:36:22 +00:00
Roy Marples
0364bb2c84
Add the nojail keyword which excludes services marked as such from the dependency tree when in a jail, #bug 22
2008-02-19 14:15:53 +00:00
Roy Marples
01e148d29d
Style
2008-02-01 12:07:19 +00:00
Roy Marples
c1b3aa77a9
fsck should ignore SIGQUIT. Some implementation exit code 3 for a reboot. Reboot on Linux requires the -f flag.
2008-02-01 10:48:21 +00:00
Roy Marples
148739ed99
Swap may need local mounts
2008-02-01 09:29:26 +00:00
Roy Marples
e2484e7f24
Fix default preen option.
2008-01-31 18:15:04 +00:00
Roy Marples
cf567c844f
Remove rc_force_auto as users can now specify -y in fsck_args.
2008-01-31 17:18:39 +00:00
Roy Marples
492a8f87cf
Enable fsck_shutdown again.
2008-01-31 17:12:54 +00:00
Roy Marples
e687cc1e79
Remove the over-engineered checkfs and checkroot scripts and replace with simple fsck, root and mtab scripts. Update dependencies accordingly.
2008-01-31 16:10:18 +00:00
Roy Marples
b6b88d3a07
fsck -A isn't all that portable, so just use one codepath.
2008-01-31 13:19:04 +00:00
Roy Marples
829f4d281c
Hack around busybox find / rm not handling -- correctly.
2008-01-25 12:33:53 +00:00
Roy Marples
cd6f815036
Don't special case innd.pid and handle files in run that start with -
2008-01-14 10:57:48 +00:00
Roy Marples
fec312d448
Update copyrights, my email and license.
2008-01-11 15:31:10 +00:00
Roy Marples
3bf49a9bd1
Adopt a more C style for scripts and remove vim settings.
2008-01-11 12:13:46 +00:00
Roy Marples
1f4422c72f
Remove full license text from shell cripts.
2008-01-11 11:45:59 +00:00
Roy Marples
2d95c9a756
Loads of NetBSD tweaks here.
2008-01-10 23:22:46 +00:00
Roy Marples
4314784520
Allow for OS and SUBOS folders so we can introduce NetBSD scripts whilst keeping BSD for all BSD's.
2008-01-10 16:35:59 +00:00
Roy Marples
18adcb1ee8
We may as well use echo here as we recreate mtab fully if successfull.
2008-01-06 23:58:12 +00:00
Mike Frysinger
6ed064504d
the reason we need portmap/rpcbind is so we can communicate with rpc.statd, so make sure we depend on it for nfs mounts
2008-01-01 18:11:45 +00:00
Roy Marples
afdcf1fa15
udev requires try function and the modules-update program should take care of any 2.4 vs 2.6 kernel issues. Also add vim instructions to a few files.
2007-12-14 20:09:53 +00:00
Roy Marples
9f2403dffa
Remove Gentoo copyright from all files that I know I have written
2007-12-14 14:12:38 +00:00
Roy Marples
0df6d640f7
Use yesno more
2007-12-09 13:49:20 +00:00
Roy Marples
0490a9290a
Remove rc_service_wait as runscript.c should do the waiting. rc_deptree_depend now returns the exact depends as listed. This is so we can support a new 'keywords' directive. We can add whatever here, like 'notimeout' which means that an init script doesn't timeout. This removes the hardcoded check on checkfs and checkroot.
2007-12-05 17:48:07 +00:00
Roy Marples
16ad975b2d
Allow services to define which extra commands require the service to be started
2007-11-29 16:23:59 +00:00
Roy Marples
82df7e4584
Use shorthand for loops
2007-11-29 11:23:06 +00:00
Roy Marples
ac9279cc0d
Massive whitespace cleanup
2007-11-28 15:45:03 +00:00
Roy Marples
97f707db0d
FreeBSD-7 and NetBSD support tmpfs, so try and use this first.
2007-11-28 10:06:13 +00:00
Roy Marples
d81def80b0
Move /etc/conf.d/rc to /etc/rc.conf.
...
Lowercase all configurable variables, non configurations remain uppercase.
Replace rc_env_bool with rc_yesno.
Split localmount info procfs (Linux) and dumpon, savecore (BSD)
2007-11-23 12:04:11 +00:00
Roy Marples
6aadda4965
We no longer need this hack for FreeBSD-7
2007-11-22 18:53:54 +00:00
Roy Marples
c2aa772687
issue.devfix is Gentoo specific, as such it belongs in a separate init script.
2007-11-22 11:57:30 +00:00
Roy Marples
9635b455c7
Introduce CONTENTS variable into Makefiles to list the contents of the directory, excluding the Makefile for to Make life easier
2007-11-20 17:37:15 +00:00
Roy Marples
11a745ab0c
We no longer support pam_console directly. Also, we cannot use chgrp due to silly LDAP issues.
2007-11-20 12:55:56 +00:00
Roy Marples
a8fcb36d72
We don't use /var/lock anymore
2007-11-20 12:20:50 +00:00
Roy Marples
91db53cef3
Move sysctl into it's own init script
2007-11-20 12:10:32 +00:00
Roy Marples
5f8cf73b22
Our build chain now works with GNU and BSD make implementations
2007-11-19 13:48:43 +00:00
Roy Marples
39227ede1d
relicense as 2-clause BSD, with the kind permission of Gentoo
2007-11-14 15:22:04 +00:00
Roy Marples
ccf79ceb47
Control of system defined env vars should not be done by us.
2007-11-14 13:39:34 +00:00
Roy Marples
a1f80bc7a7
Fix rmnlogin for parallel startup
2007-11-01 18:30:14 +00:00
Roy Marples
9fa717fb1d
whitespace
2007-10-31 22:12:39 +00:00
Roy Marples
7cd70aee4d
You can now log baselayout-2 again, through the RC_LOGGER conf.d/rc
...
setting. The log is temp stored in /lib/rc/init.d/rc.log and appended
to /var/log/rc.log if it's writeable. sysinit cannot be logged in Linux
as we rely on sysinit to bring the system up to a point where we can log.
single user cannot be logged on FreeBSD due to waitpid(0,0,0) incorrectly
waiting for the log daemon in another process group.
2007-10-31 15:46:56 +00:00
Roy Marples
8c85fa399f
Do an exact match on tmpfs
2007-10-29 13:58:40 +00:00
Roy Marples
e2ba92f773
/etc/mtab is now a true reflection on /proc/mounts. The only exception is that we punt any / on tmpfs entry, #194615 .
2007-10-29 13:53:21 +00:00
Roy Marples
42c231d760
Indent fixes
2007-10-27 09:53:56 +00:00
Roy Marples
85648ee5cd
Fix tmp cleaning
2007-10-23 10:05:47 +00:00
Roy Marples
0f26607499
Only update mtab if /proc/mounts exists
2007-10-11 15:14:55 +00:00
Roy Marples
5261b5ed3a
Fix checkroot and give info about mtab
2007-10-11 15:04:07 +00:00
Roy Marples
64d1dd9da0
If / block device as in /etc/fstab does not exist, use /dev/root if it's available in checkroot, #171593 .
2007-10-11 09:49:54 +00:00
Roy Marples
31c6cacb0a
Always remount root rw if it's not
2007-10-09 21:10:53 +00:00
Roy Marples
dc0ba7ebf3
netmount, localmount, halt.sh and net scripts now check OS specific flags to see if a mount is network mounted (linux = fstab, *bsd = "local" in mount options) or not, #192772 .
2007-10-09 15:33:05 +00:00
Roy Marples
9d18c195d7
Don't unmount stuff in /dev or /sys
2007-10-05 14:15:06 +00:00
Roy Marples
93684b646e
Don't umount anything in /sys like we do for /proc and /dev
2007-10-05 13:37:57 +00:00
Roy Marples
cc3c5ad111
fstabinto now behaves more like mountinfo with respect to --quiet
2007-09-25 22:45:57 +00:00
Roy Marples
15b703c6e4
No need for that sed anymore
2007-09-25 19:18:09 +00:00
Mike Frysinger
f383365493
Do not require portmap in netmount when nolock option is used with nfs mounts and fixup the test so that it actually works.
2007-09-25 02:29:56 +00:00
Roy Marples
ccfbb4ad45
Use mkdir to test. Also, quote for robustness
2007-09-24 15:27:06 +00:00
Roy Marples
987c72f12f
--opts to --options
2007-09-19 11:53:35 +00:00
Mike Frysinger
2aac9fa464
revert EARLY_MOUNTS since everything in the boot runlevel depends on localmount already and anything that runs before it does not rely on things like /tmp or /var/run (and because i confused localmount with checkroot)
2007-09-09 16:49:40 +00:00
Mike Frysinger
869da3c685
only do the X lock stuff in /tmp so people can overload WIPE_TMP_DIRS for a general "wipe this directory" option. also force +t on /tmp and /var/tmp.
2007-09-09 16:08:32 +00:00
Mike Frysinger
230421384a
Allow people to specify a list of early mount points which will be mounted at the end of localmount so they can do tmpfs on things like /tmp #181527 .
2007-09-09 16:04:40 +00:00
Mike Frysinger
06ae2e5593
Allow people to specify a list of temp dirs to clean in bootmisc #191807 .
2007-09-09 15:52:05 +00:00
Roy Marples
52f7df0d0c
Add --quiet to mountinfo
2007-09-03 14:02:15 +00:00
Roy Marples
9cf4628aaa
Setup wtmp for BSD too
2007-08-23 10:25:09 +00:00
Roy Marples
3950eb6eba
`config /etc/fstab' can now be used in depend() functions to show that
...
the deptree should be regenerated if /etc/fstab has changed.
2007-08-15 14:49:41 +00:00
Roy Marples
9174c25aab
Ensure that /var/log exists too
2007-08-02 08:41:31 +00:00
Roy Marples
02fcdeede4
Create needed dirs in bootmisc if they do not exist
2007-07-30 11:31:29 +00:00
Roy Marples
380b7f917d
Duh, test it
2007-07-27 06:22:05 +00:00
Roy Marples
f678660f04
Fix bootmisc stopping for pam_console and write halt record correctly.
2007-07-26 16:30:05 +00:00
Roy Marples
075e80b358
Merge some of reb's OpenBSD fixes in
2007-07-25 20:58:23 +00:00
Roy Marples
26d11b33cf
Use printf so we don't put blank lines at the top of new files and fix mountinfo for nfs roots
2007-07-16 17:07:15 +00:00
Roy Marples
42a5cb043b
Allow zsh to work as our shell
2007-07-16 16:22:37 +00:00
Roy Marples
e983dd0ac6
Yikes, removed that old bash gettextism
2007-07-16 14:09:29 +00:00
Roy Marples
cffbaa6c4e
Use echo instead of touch - saves on forking
2007-07-13 00:04:20 +00:00
Roy Marples
5257ba51b9
Don't unmount network filesystems in localmount or halt.sh, #175602 .
2007-07-11 17:27:46 +00:00
Roy Marples
b4af22edda
Only mount stuff if not already mounted
2007-07-11 10:39:01 +00:00
Roy Marples
05201b514b
init scripts and their extra options can now have descriptions, #184327 .
2007-07-10 19:09:41 +00:00
Roy Marples
6802e045b3
Take no chances with PATH, use our env-update
2007-07-09 10:39:35 +00:00
Roy Marples
53d17a1be2
Add an option to fork ldconfig in env-update, #182794 . Also, preserve the entire line in /etc/env.d/foo if it begins with $
2007-07-09 10:26:02 +00:00
Roy Marples
87d1a3be19
Fix netmount - thanks to Hollow
2007-07-08 12:59:58 +00:00
Mike Frysinger
6e8f3dabf7
Allow urandom location to be customized #134489 .
2007-06-22 02:57:40 +00:00
Mike Frysinger
45d2bcdb9f
Use -q option with modprobe rather than sending to /dev/null.
2007-06-02 12:23:43 +00:00
Mike Frysinger
804de005b8
Fix from comio for /proc/filesystems typo in localmount #180621 .
2007-06-02 12:22:07 +00:00
Roy Marples
27344f7f27
Use killall5 again so we can cleanly remount / readonly, #168977
...
and #177689 .
2007-05-30 22:30:54 +00:00
Roy Marples
8bcc145c98
Always update mtab
2007-05-30 11:26:53 +00:00
Roy Marples
eb7a0a6285
busybox sysctl does not support -q
2007-05-16 14:53:47 +00:00
Mike Frysinger
3ae655caa3
mount nfsd on /proc/fs/nfs automatically
2007-05-12 11:07:04 +00:00
Roy Marples
81ccc67446
Store the defined random pool size, #177722 thanks to Yaroslav Isakov.
2007-05-11 10:33:49 +00:00
Roy Marples
7cdd8d4a0e
Only mount ro on Linux
2007-05-11 08:57:47 +00:00
Roy Marples
35487d9313
Remove reference to dm-crypt
2007-05-05 11:15:07 +00:00
Roy Marples
9ced77155b
We don't have console, so default to no for fsck
2007-05-02 13:07:00 +00:00
Mike Frysinger
d2c112ef4f
debugfs support
2007-04-30 16:22:19 +00:00
Roy Marples
33052124b5
Don't dmesg for VPS systems
2007-04-26 14:22:54 +00:00
Roy Marples
67bfa29457
Don't sysctl for VPS systems
2007-04-26 14:17:15 +00:00
Roy Marples
ea2158fe94
checkroot and checkfs now use more friendly generic options, #116016
2007-04-26 13:07:57 +00:00
Roy Marples
7590e7b258
exec rc-abort
2007-04-20 13:22:27 +00:00
Roy Marples
c52f216450
Added the rc-abort command, #175106 thanks to Daniel Drake.
2007-04-20 13:12:21 +00:00
Mike Frysinger
a316a1fa72
Automatically mount selinuxfs on /selinux in localmount.
2007-04-20 10:47:24 +00:00
Roy Marples
876bd89f4b
hug getopt_long some more
2007-04-13 15:20:10 +00:00
Roy Marples
662e308d86
Apply sysctl if we don't have an init script
2007-04-10 10:50:07 +00:00
Roy Marples
0762d88d84
Punt the rc-depend man page as it's been moved out of /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin
2007-04-06 01:07:10 +00:00
Roy Marples
5af58b4514
Rewrite the core parts in C. We now provide librc so other programs can
...
query runlevels, services and state without using bash. We also provide
libeinfo so other programs can easily use our informational functions.
As such, we have dropped the requirement of using bash as the init script
shell. We now use /bin/sh and have strived to make the scripts as portable
as possible. Shells that work are bash and dash. busybox works provided
you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
should disable find too.
zsh and ksh do not work at this time.
Networking support is currently being re-vamped also as it was heavily bash
array based. As such, a new config format is available like so
config_eth0="1.2.3.4/24 5.6.7.8/16"
or like so
config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"
We will still support the old bash array format provided that /bin/sh IS
a link it bash.
ChangeLog for baselayout-1 can be found in our SVN repo.
2007-04-05 11:18:42 +00:00