summaryrefslogtreecommitdiffstats
path: root/etc/rc.initdiskless
Commit message (Collapse)AuthorAgeFilesLines
* Use utils from /rescue vs. /stand. Also use pax rather than cpio & gzip.obrien2004-12-121-1/+1
|
* - Make the header conform to standard rc.d style.mtm2004-11-051-2/+2
| | | | | - The 'before ipfw' directive seems bogus, and should instead be 'before rcconf'.
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+1
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* Removed whitespace at BOF, EOL & EOF.schweikh2004-06-061-1/+1
|
* Initdiskless must run before ipfw, or people will not be able tophk2004-04-281-0/+1
| | | | | | | | | use the conf/* stuff for their firewall configuration. Running ipfw before could seem to make sense in that it would allow one to setup access to the NFS server on a "default-deny" kernel, but it is pretty obvious to the casual observer that such a configuration never makes it far enough to mount the NFS-root in the first place.
* Replace shell's positional parameters safely.ru2004-04-281-3/+2
|
* When using this in non-NFSroot circumstances, `mount -t nfs` mayphk2004-04-271-1/+2
| | | | | return empty. Add a dummy element to prevent the alternate action of the shell builtin "set"
* Band-aid diskless booting by running a new preseedrandom script beforebrooks2004-04-151-0/+1
| | | | | | | | | | | initdiskless. The output of several commands and if available the contents of /entropy are feed into /dev/random to kickstart the PRNG. /etc/rc.d/initrandom is left alone to maintain the previous behavior as much as possiable. Further work in this area is probably needed. Discussed with: markm
* Extensive documentation changes to the script, but onlyluigi2004-03-311-49/+87
| | | | | | | | | comments and empty lines have been touched. All of this should go in the diskless(8) manpage, now if we had some kind of 'literate programming' tool to extract the comments from the script and put them in a reasonable nroff format, it would be a lot easier to keep code and docs in sync
* Minor changes mostly as discussed on the lists a few days ago:luigi2004-03-311-6/+22
| | | | | | | | | | | | | + SUBDIR.cpio.gz prevents files from SUBDIR/ to be copied when priming the memory filesystems. This restores the old behaviour and makes the copy process a lot more efficient + look for templates also in the list of directories supplied by bootp/dhcp via the T134 option aka kern.bootp_cookie + keep track of directories temporarily mounted with "remount" or "diskless_remount" commands and unmount them once we are done with them (at the end of this script).
* If /conf/diskless_remount exists, use it to remount the entire /confbrooks2004-03-121-2/+13
| | | | | directory. This allows multiple roots (say for different architectures) to share the same set of /conf files.
* Make this file more generally usable:phk2004-03-091-19/+35
| | | | | | | | Trigger not only on diskless booting sysctls being set, but also on the existence of the file "/etc/diskless". But do not try to extract IP# related keywords in that case. Add a general "remount" facility to allow non-NFS remounting.
* 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>
* Remove trailing whitespacedougb2003-10-131-3/+3
|
* Update references to rc.diskless[12]dougb2003-10-131-2/+2
|
* Bump default /etc size from 2MB to 5MB to deal with bloat^Wgrowth inkris2003-10-121-4/+3
| | | | the size of /etc.
* Correct typo in Matt's name.fjoe2003-08-071-1/+1
|
* Allow diskless_remount files to contain path beginning with / which willbrooks2003-06-301-0/+18
| | | | | | | be mounted relative to the NFS root mountpoint. Reviewed by: dillon at backplane.com MFC After: 3 days
* Add another backslash ('\').jhay2003-02-151-1/+1
|
* Do not unconditionally load the configuration files for the RCNG case.dillon2002-12-221-75/+156
| | | | | | | | | | | | | | 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-13/+13
| | | | | | | | | | * 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
* In a diskless setup, rc.d/initdiskless may overwrite parts of /etc ondd2002-10-021-0/+2
| | | | | | | | | | | | a per-machine or per-cluster (with different ways of expressing what's part of a cluster) basis. In order for this to be effective, rc.conf has to be reread after initdiskless is finished. Implement this by adding a hook to etc/rc which rereads rc.conf by request. This can also be implemented by renaming initdiskless to initdiskless.sh and sourcing rc.conf there manually, but it was decided that, that would be uglier than a hook in etc/rc. Developed in concert with: gordon
* Use mdmfs(8) rather than rolling our own RAM-disks.phk2002-09-221-4/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Stock -current has more than 300 files in /etc, so 255 inodes for thedd2002-07-281-1/+1
| | | | | | | | | /etc filesystem isn't enough; consequently, add "-i 4096" to the newfs command for /etc. This results in 1022 inodes, which should be enough for the forseeable future (although I don't know why we would ever have more than 1000 files in a default /etc). Silence by: -current
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-07-181-20/+19
| | | | | | | | 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
* Utilize dhcp information in the kernel environment if we don't haveobrien2002-04-221-1/+20
| | | | | | hostname and DNS information already. Submitted by: Danny Braniss <danny@cs.huji.ac.il>
* The usage of 'newaliases' needs to be after we know for sure that /usrobrien2002-02-231-5/+0
| | | | | | is mounted. Submitted by: rizzo
* The existing bazaar and site-specific policy in rc.diskless1 is Just Wrong;obrien2002-02-221-6/+12
| | | | | | | | 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 Improve the line-wrapping of additional comments, some of which appearedrwatson2002-01-171-16/+11
| | | | to be wrapped around 60, others around 40 columns.
* o Remove a somewhat less comprehensible comment about modifying /etc/rc.rwatson2002-01-171-5/+2
| | | | o Improve line-wrapping of another comment for consistency.
* Remove incorrect comments about the population of /etc: no attempt isrwatson2001-12-261-5/+1
| | | | | made to copy the NFS-mounted on to /tmp/etc, instead, it is populated entirely from /conf/default, then overriden from /conf/IP.
* * Simplify the population of the /etc memory filesystem. To avoidbsd2001-05-091-14/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move to using md.imp2001-04-251-3/+11
| | | | | | | | | 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
* Eliminate the null mount for /etc for diskless clients.bsd2001-04-201-31/+35
|
* Change the order in which /etc files are copied into place; copybsd2001-04-031-5/+12
| | | | | | default first, then network-specific files, then host-specific files. I think this was the original intent, as Matt indicated the previous code appeared to be a bug.
* Add copyright notices. Other systems have been barrowing our /etc filesobrien2000-10-081-0/+26
| | | | w/o giving any credit.
* Cleanup diskless support in current, mostly aligning it to the oneluigi2000-01-061-55/+52
| | | | | | 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-1/+0
| | | | Noted by: Doug <Doug@gorean.org>
* Apply a consistent style to most of the etc scripts. Particularly, usesheldonh1999-09-131-15/+21
| | | | | | | | | 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>
* Style clean-up:sheldonh1999-08-251-3/+2
| | | | | | | | | | | | | | | | * All variables are now embraced: ${foo} * All comparisons against some value now take the form: [ "${foo}" ? "value" ] where ? is a comparison operator * All empty string tests now take the form: [ -z "${foo}" ] * All non-empty string tests now take the form: [ -n "${foo}" ] Submitted by: jkh
* Revamp rc.diskless. Split into rc.diskless1 and rc.diskless2. providedillon1999-02-091-0/+100
more opportunities for overriding. Clean up /etc/rc ( remove conf_dir, remove startup mount special cases, remove other special cases )
OpenPOWER on IntegriCloud