#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
298514 |
|
23-Apr-2016 |
lme |
- Add descriptions to most of the rc scripts. Those are mostly taken from their daemon's manpage and probably improved. - Consistently use "filesystem" not "file system".
Approved by: bapt, brueffer Differential Revision: D452
|
#
238427 |
|
13-Jul-2012 |
brooks |
MFP4 214344: Tighten the regular expression that checks for an md /tmp such that no /tmp mount and an md / isn't improperly matched.
Sponsored by: DARPA/AFRL
|
#
238416 |
|
13-Jul-2012 |
kevlo |
Whitespace nit
|
#
221007 |
|
25-Apr-2011 |
dougb |
Create a function for the code from r192246 so that it can be used both times mount is called.
Limit the automatic behavior to when AUTO is specified (as it is in etc/defaults/rc.conf) and for everything else take advantage of all of the goodness in checkyesno.
|
#
205121 |
|
13-Mar-2010 |
jh |
Use an unique directory name instead of hardcoded /tmp/.diskless. A malicious user could create a file named /tmp/.diskless and cause the script to misbehave.
PR: conf/141258 Reported by: Jon Passki MFC after: 1 week
|
#
192246 |
|
17-May-2009 |
danger |
- do not create and mount new file systems on top of the old ones on every invocation of this script once we already have one (in case tmpmfs="YES").
Reviewed by: dougb
|
#
180563 |
|
16-Jul-2008 |
dougb |
As previously discussed, add the svn:executable property to all scripts
|
#
174464 |
|
08-Dec-2007 |
dougb |
Add an empty stop_cmd to the remaining scripts that don't start daemons and don't already have one.
|
#
169923 |
|
24-May-2007 |
rse |
Remove two unnecessary and useless sub-shell constructs.
|
#
153028 |
|
02-Dec-2005 |
dougb |
Brooks pointed out a case where tmp needs to be run after mountcritremote, so force it the other way instead.
|
#
153026 |
|
02-Dec-2005 |
dougb |
Force this script to run before mountcritremote to avoid non-deterministic behavior when introducing local_startup scripts to rcorder.
|
#
137451 |
|
09-Nov-2004 |
keramida |
Add two new rc.conf options: tmpmfs_flags and varmfs_flags.
These can be used to pass extra options to the mdmfs(8) utility, to customize the finer details of the md file system creation (i.e. to turn on/off softupdates, to specify a default owner for md filesystem, etc).
Use these two new flags to mount tmpmfs and varmfs without softupdates, since it doesn't make much sense to use SU on malloc-backed file systems.
Reviewed by: mtm Inspired by: J. D. Bronson, jbronson at wixb dot com
|
#
136224 |
|
07-Oct-2004 |
mtm |
Remove the requirement for the FreeBSD keyword as it no longer makes any sense.
Discussed with: dougb, brooks MFC after: 3 days
|
#
135163 |
|
13-Sep-2004 |
ru |
A power failure left the temporary /var/.diskless directory on my system, and since then my /var was always created as MFS which was very surprising. Fix this for /tmp and /var.
|
#
127345 |
|
23-Mar-2004 |
brooks |
Overhaul the /etc/rc.d/diskless script by splitting it out into hostname, resolve, tmp, and var scripts. The latter three are new and were repo copied. These scripts no longer depend on being booted with and NFS root instead attempt to automaticly create mfs /tmp and /var volumes if the they are not writable. This behavior can be overridden in /etc/rc.conf.
Reviewed by: luigi, pjd
|
#
126744 |
|
08-Mar-2004 |
pjd |
Mark scripts as not usable inside a jail by adding keyword 'nojail'.
Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
|
#
124149 |
|
05-Jan-2004 |
brooks |
Don't run newaliases if sendmail_enable=NONE.
Submitted by: Matt Peterson <matt at peterson dot org> Approved by: silence on freebsd-rc
|
#
121066 |
|
13-Oct-2003 |
dougb |
Update references to rc.diskless[12]
|
#
120711 |
|
03-Oct-2003 |
phk |
Fix typo.
Spotted by: "Bjoern A. Zeeb" <bzeeb@zabbadoz.net>
|
#
120706 |
|
03-Oct-2003 |
phk |
More checking if kenv actually know something.
Guard against test(1)-unfriendly outputs from kenv.
|
#
120702 |
|
03-Oct-2003 |
phk |
In case we have no /etc/resolv.conf, don't try to make it out of thin blue air if the kenv doesn't have any info.
This improves the truth value of the comment above significantly and reduces the bogous output on the console considerably.
|
#
110943 |
|
15-Feb-2003 |
jhay |
kenv moved from /usr/bin/ to /bin/.
|
#
108191 |
|
22-Dec-2002 |
dillon |
Do not unconditionally load the configuration files for the RCNG case. Instead, load them as part of the rc.d system. This allows us to prioritize the initidiskless script so it runs before the configuration files are loaded and allows us to get rid of the exit 2 hack in /etc/rc. The exit 2 never worked anyway since it did not unset the prior configuration, causing the diskless code to not operate properly.
Do a major cleanup and revamping of the diskless code for RCNG. This will be backported to the non-RCNG scripts as well as -stable.
With suggestions from: Mike Makonnen <mtm@identd.net> MFC after: 7 days
|
#
104980 |
|
12-Oct-2002 |
schweikh |
Fix style bugs: * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line.
Approved by: silence from gordon
|
#
104288 |
|
01-Oct-2002 |
ru |
test -h is deprecated; use -L instead.
PR: bin/40846
|
#
103799 |
|
22-Sep-2002 |
phk |
Use mdmfs(8) rather than rolling our own RAM-disks.
Sponsored by: DARPA & NAI Labs.
|
#
100285 |
|
18-Jul-2002 |
bsd |
Apply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail required directories if sendmail_enable is not set to "none".
Suggested by: gordon
|
#
100280 |
|
18-Jul-2002 |
gordon |
Merge in all the changes that Mike Makonnen has been maintaining for a while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
|
#
91785 |
|
07-Mar-2002 |
obrien |
fix backwards spelling
|
#
91105 |
|
23-Feb-2002 |
obrien |
The usage of 'newaliases' needs to be after we know for sure that /usr is mounted.
Submitted by: rizzo
|
#
91074 |
|
22-Feb-2002 |
obrien |
The existing bazaar and site-specific policy in rc.diskless1 is Just Wrong; and looks like no other Unix diskless configuration I've ever seen. Thus allow a more traditional /etc.
Note, the use of an MFS /var should also be settable. Otherwise installing ports(packages) is just a total PITA.
|
#
88497 |
|
26-Dec-2001 |
rwatson |
o Add a comment indicating that if /tmp==/var/tmp in rc.diskless2, the md device and file system creation occurs *after* mtree is run, and as such an /var/tmp/* or /tmp/* entries will be under the mountpoint (or fail) rather than appearing in the md filesystems. This prevents the creation of vi.recover, and might affect other localizations that rely on the mtree calls affecting these directories.
|
#
87010 |
|
27-Nov-2001 |
rwatson |
Remeber to set the permissions on an md-backed /tmp to 01777, rather than using the default of 0755.
|
#
85062 |
|
17-Oct-2001 |
bsd |
Ensure that /var/log/lastlog exists so that login doesn't complain.
Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks
|
#
77575 |
|
01-Jun-2001 |
ru |
Remove vestiges of MFS.
|
#
76409 |
|
09-May-2001 |
bsd |
* Simplify the population of the /etc memory filesystem. To avoid the null mount, we currently create a temporary mfs on /tmp, copy /etc to /tmp, then mount /etc as mfs and copy everything back from /tmp, then delete the /tmp mfs.
The patch eliminates the temporary /tmp mfs and the subsequent copying and simply populates the /etc mfs by copying from /conf/default/etc. This requires that /conf/default/etc contain a complete copy of all the /etc stuff instead of just overrides. I don't think that is too much of an extra step in setting up a diskless environment.
* Provide the ability to make /tmp a memory filesystem independent of /var. This removes the requirement that /tmp be a symlink to /var/tmp and this makes the diskless code work with the default filesystem layout. If a seperate /tmp memory filesystem is created, the 'tmpsize' environment variable is used to determine its size (default to 10 Meg).
* Reduce diffs between the -current and -stable versions of these files to a bare minimum. Only the definition of the shell function 'mount_md' is different.
Not Objected to by: -arch@, -small@
MFC after: 2 days
|
#
76193 |
|
01-May-2001 |
phk |
Don't mount a md(4) over /dev on DEVFS enabled diskless systems.
|
#
75931 |
|
25-Apr-2001 |
imp |
Move to using md. o create a simple wrapper function mount_md that makes it easy to move from mount_mfs.
# NOTE: you will need to MAKEDEV md[0123] in order for this to work.
Reviewed by: bsd, keichii
|
#
75898 |
|
24-Apr-2001 |
imp |
MFS: the MFS still applies to -current until such time as someone fixes rc.diskless2 to use mdconfig rather than mount_mfs. These changes are still relevant to -current.
|
#
66830 |
|
08-Oct-2000 |
obrien |
Add copyright notices. Other systems have been barrowing our /etc files w/o giving any credit.
|
#
59674 |
|
27-Apr-2000 |
sheldonh |
Add to defaults/rc.conf a new function source_rc_confs which rc scripts may use to source safely overrides in ${rc_conf_files} files.
This protects users who insist on the bad practice of copying /etc/defaults/rc.conf to /etc/rc.conf from a recursive loop that exhausts available file descriptors.
Several people have expressed interest in breaking this function out into its own shell script. Anyone who wants to embark on such an undertaking would do well to study the attributed PR.
PR: 17595 Reported by: adrian Submitted by: Doug Barton <Doug@gorean.org>
|
#
55520 |
|
06-Jan-2000 |
luigi |
Cleanup diskless support in current, mostly aligning it to the one in the 3.x branch. Also remove the dependency on /usr to find the boot address/interface. Mostly-submitted-abd-tested-by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
|
#
51237 |
|
13-Sep-1999 |
peter |
Add/adjust some $FreeBSD$ tags.
Noted by: Doug <Doug@gorean.org>
|
#
51231 |
|
13-Sep-1999 |
sheldonh |
Apply a consistent style to most of the etc scripts. Particularly, use case instead of test where appropriate, since case allows case is a sh builtin and (as a side-effect) allows case-insensitivity.
Changes discussed on freebsd-hackers.
Submitted by: Doug Barton <Doug@gorean.org>
|
#
43849 |
|
10-Feb-1999 |
jkh |
Use /etc/defaults/rc.conf everywhere, falling back to /etc/rc.conf as necessary (for half-assed upgrades).
|
#
43803 |
|
09-Feb-1999 |
dillon |
Revamp rc.diskless. Split into rc.diskless1 and rc.diskless2. provide more opportunities for overriding. Clean up /etc/rc ( remove conf_dir, remove startup mount special cases, remove other special cases )
|