aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.diskless1
Commit message (Collapse)AuthorAgeFilesLines
* Per previous announcement, remove the old version of the rc system.Doug Barton2003-05-021-225/+0
| | | | | | | | | | | | | All functionality from the previous system has been preserved, and users should still customize their system boot with the familiar methods, rc.conf, rc.conf.local, rc.firewall, sysctl.conf, etc. Users who have customized versions of scripts that have been removed should take great care when upgrading, since the compatibility code that used those old scripts has also been removed. Notes: svn path=/head/; revision=114492
* Add another backslash ('\').John Hay2003-02-151-1/+1
| | | | Notes: svn path=/head/; revision=110942
* Synchronize old rc.diskless scripts from new rc.d/ scriptsMatthew Dillon2002-12-281-2/+3
| | | | Notes: svn path=/head/; revision=108350
* Revamp the way rc.diskless1 creates and populates memory filesystems. MakeMatthew Dillon2002-12-211-69/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the whole thing generic. That is, /conf/base, /conf/default, /conf/${ipba}, and /conf/${ip} are all handled the same way. Introduce an NFS remounting feature via the /conf/base/<dir>/diskless_remount so you can avoid dup'ing system directories in /conf (described in rc file). Introduce a memory filesystem sizing feature via the /conf/base/<dir>/md_size file that allows you to override the default memory filesystem size. Introduce a file containing relative paths to remove for each memory filesystem directory as /conf/base/<dirname>.remove. Make the cpio feature more generic (applies to any filesystem) (aka /conf/base/<dirname>.cpio.gz). Allow any root directories to be created as a memory filesystem via the /conf/*/* mechanism. Replace the copyright notice with a reference to the COPYRIGHT file and do other cleanups. (documentation and man page updates to follow). MFC after: 3 days Notes: svn path=/head/; revision=108145
* Stock -current has more than 300 files in /etc, so 255 inodes for theDima Dorfman2002-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 Notes: svn path=/head/; revision=100791
* Utilize dhcp information in the kernel environment if we don't haveDavid E. O'Brien2002-04-221-1/+20
| | | | | | | | | hostname and DNS information already. Submitted by: Danny Braniss <danny@cs.huji.ac.il> Notes: svn path=/head/; revision=95280
* The usage of 'newaliases' needs to be after we know for sure that /usrDavid E. O'Brien2002-02-231-5/+0
| | | | | | | | | is mounted. Submitted by: rizzo Notes: svn path=/head/; revision=91105
* The existing bazaar and site-specific policy in rc.diskless1 is Just Wrong;David E. O'Brien2002-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. Notes: svn path=/head/; revision=91074
* o Improve the line-wrapping of additional comments, some of which appearedRobert Watson2002-01-171-16/+11
| | | | | | | to be wrapped around 60, others around 40 columns. Notes: svn path=/head/; revision=89438
* o Remove a somewhat less comprehensible comment about modifying /etc/rc.Robert Watson2002-01-171-5/+2
| | | | | | | o Improve line-wrapping of another comment for consistency. Notes: svn path=/head/; revision=89437
* Remove incorrect comments about the population of /etc: no attempt isRobert Watson2001-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. Notes: svn path=/head/; revision=88496
* * Simplify the population of the /etc memory filesystem. To avoidBrian S. Dean2001-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 Notes: svn path=/head/; revision=76409
* Move to using md.Warner Losh2001-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 Notes: svn path=/head/; revision=75931
* Eliminate the null mount for /etc for diskless clients.Brian S. Dean2001-04-201-31/+35
| | | | Notes: svn path=/head/; revision=75746
* Change the order in which /etc files are copied into place; copyBrian S. Dean2001-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. Notes: svn path=/head/; revision=75101
* Add copyright notices. Other systems have been barrowing our /etc filesDavid E. O'Brien2000-10-081-0/+26
| | | | | | | w/o giving any credit. Notes: svn path=/head/; revision=66830
* Cleanup diskless support in current, mostly aligning it to the oneLuigi Rizzo2000-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> Notes: svn path=/head/; revision=55520
* Add/adjust some $FreeBSD$ tags.Peter Wemm1999-09-131-1/+0
| | | | | | | Noted by: Doug <Doug@gorean.org> Notes: svn path=/head/; revision=51237
* Apply a consistent style to most of the etc scripts. Particularly, useSheldon Hearn1999-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> Notes: svn path=/head/; revision=51231
* Style clean-up:Sheldon Hearn1999-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 Notes: svn path=/head/; revision=50357
* Revamp rc.diskless. Split into rc.diskless1 and rc.diskless2. provideMatthew Dillon1999-02-091-0/+100
more opportunities for overriding. Clean up /etc/rc ( remove conf_dir, remove startup mount special cases, remove other special cases ) Notes: svn path=/head/; revision=43803