summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/tmp
Commit message (Collapse)AuthorAgeFilesLines
* Use an unique directory name instead of hardcoded /tmp/.diskless.jh2010-03-131-2/+2
| | | | | | | | | 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
* - do not create and mount new file systems on top of the old ones on everydanger2009-05-171-2/+4
| | | | | | | invocation of this script once we already have one (in case tmpmfs="YES"). Reviewed by: dougb
* As previously discussed, add the svn:executable property to all scriptsdougb2008-07-161-0/+0
|
* Add an empty stop_cmd to the remaining scripts that don't startdougb2007-12-081-0/+1
| | | | daemons and don't already have one.
* Remove two unnecessary and useless sub-shell constructs.rse2007-05-241-1/+1
|
* Brooks pointed out a case where tmp needs to be run afterdougb2005-12-021-2/+1
| | | | mountcritremote, so force it the other way instead.
* Force this script to run before mountcritremote to avoiddougb2005-12-021-0/+1
| | | | | non-deterministic behavior when introducing local_startup scripts to rcorder.
* Add two new rc.conf options: tmpmfs_flags and varmfs_flags.keramida2004-11-091-2/+2
| | | | | | | | | | | | | | 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
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+0
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* A power failure left the temporary /var/.diskless directoryru2004-09-131-1/+1
| | | | | on my system, and since then my /var was always created as MFS which was very surprising. Fix this for /tmp and /var.
* Overhaul the /etc/rc.d/diskless script by splitting it out intobrooks2004-03-231-134/+26
| | | | | | | | | | 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
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-081-1/+1
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Don't run newaliases if sendmail_enable=NONE.brooks2004-01-051-1/+7
| | | | | Submitted by: Matt Peterson <matt at peterson dot org> Approved by: silence on freebsd-rc
* Update references to rc.diskless[12]dougb2003-10-131-1/+1
|
* Fix typo.phk2003-10-031-1/+1
| | | | Spotted by: "Bjoern A. Zeeb" <bzeeb@zabbadoz.net>
* More checking if kenv actually know something.phk2003-10-031-2/+4
| | | | Guard against test(1)-unfriendly outputs from kenv.
* In case we have no /etc/resolv.conf, don't try to make it out ofphk2003-10-031-1/+1
| | | | | | | 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.
* kenv moved from /usr/bin/ to /bin/.jhay2003-02-151-3/+3
|
* Do not unconditionally load the configuration files for the RCNG case.dillon2002-12-221-31/+77
| | | | | | | | | | | | | | 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
* Fix style bugs:schweikh2002-10-121-3/+3
| | | | | | | | | | * 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
* test -h is deprecated; use -L instead.ru2002-10-011-1/+1
| | | | PR: bin/40846
* Use mdmfs(8) rather than rolling our own RAM-disks.phk2002-09-221-4/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Apply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmailbsd2002-07-181-0/+7
| | | | | | required directories if sendmail_enable is not set to "none". Suggested by: gordon
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-07-181-1/+8
| | | | | | | | 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
* fix backwards spellingobrien2002-03-071-1/+1
|
* The usage of 'newaliases' needs to be after we know for sure that /usrobrien2002-02-231-0/+5
| | | | | | is mounted. Submitted by: rizzo
* The existing bazaar and site-specific policy in rc.diskless1 is Just Wrong;obrien2002-02-221-2/+2
| | | | | | | | 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.
* o Add a comment indicating that if /tmp==/var/tmp in rc.diskless2, therwatson2001-12-261-0/+4
| | | | | | | | 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.
* Remeber to set the permissions on an md-backed /tmp to 01777, rather thanrwatson2001-11-271-0/+1
| | | | using the default of 0755.
* Ensure that /var/log/lastlog exists so that login doesn't complain.bsd2001-10-171-0/+3
| | | | | Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks
* Remove vestiges of MFS.ru2001-06-011-1/+1
|
* * Simplify the population of the /etc memory filesystem. To avoidbsd2001-05-091-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't mount a md(4) over /dev on DEVFS enabled diskless systems.phk2001-05-011-5/+9
|
* Move to using md.imp2001-04-251-2/+9
| | | | | | | | | 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
* MFS: the MFS still applies to -current until such time as someone fixesimp2001-04-241-15/+19
| | | | | rc.diskless2 to use mdconfig rather than mount_mfs. These changes are still relevant to -current.
* Add copyright notices. Other systems have been barrowing our /etc filesobrien2000-10-081-0/+26
| | | | w/o giving any credit.
* Add to defaults/rc.conf a new function source_rc_confs which rcsheldonh2000-04-271-0/+1
| | | | | | | | | | | | | | | | | 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>
* Cleanup diskless support in current, mostly aligning it to the oneluigi2000-01-061-11/+13
| | | | | | 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>
* Add/adjust some $FreeBSD$ tags.peter1999-09-131-2/+1
| | | | Noted by: Doug <Doug@gorean.org>
* Apply a consistent style to most of the etc scripts. Particularly, usesheldonh1999-09-131-5/+7
| | | | | | | | | 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>
* Use /etc/defaults/rc.conf everywhere, falling back to /etc/rc.confjkh1999-02-101-3/+4
| | | | as necessary (for half-assed upgrades).
* Revamp rc.diskless. Split into rc.diskless1 and rc.diskless2. providedillon1999-02-091-0/+39
more opportunities for overriding. Clean up /etc/rc ( remove conf_dir, remove startup mount special cases, remove other special cases )
OpenPOWER on IntegriCloud