rc.initdiskless (182895) | rc.initdiskless (208060) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 1999 Matt Dillon 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 1999 Matt Dillon 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.initdiskless 182895 2008-09-09 18:40:50Z bms $ | 27# $FreeBSD: head/etc/rc.initdiskless 208060 2010-05-14 04:53:57Z dougb $ |
28 29# On entry to this script the entire system consists of a read-only root 30# mounted via NFS. The kernel has run BOOTP and configured an interface 31# (otherwise it would not have been able to mount the NFS root!) 32# 33# We use the contents of /conf to create and populate memory filesystems 34# that are mounted on top of this root to implement the writable 35# (and host-specific) parts of the root filesystem, and other volatile --- 78 unchanged lines hidden (view full) --- 114# /conf/T/SUBDIR.remove 115# The list of paths contained in the file are rm -rf'd 116# relative to /SUBDIR. 117# 118# /conf/diskless_remount 119# Similar to /conf/T/M/diskless_remount above, but allows 120# all of /conf to be remounted. This can be used to allow 121# multiple roots to share the same /conf. | 28 29# On entry to this script the entire system consists of a read-only root 30# mounted via NFS. The kernel has run BOOTP and configured an interface 31# (otherwise it would not have been able to mount the NFS root!) 32# 33# We use the contents of /conf to create and populate memory filesystems 34# that are mounted on top of this root to implement the writable 35# (and host-specific) parts of the root filesystem, and other volatile --- 78 unchanged lines hidden (view full) --- 114# /conf/T/SUBDIR.remove 115# The list of paths contained in the file are rm -rf'd 116# relative to /SUBDIR. 117# 118# /conf/diskless_remount 119# Similar to /conf/T/M/diskless_remount above, but allows 120# all of /conf to be remounted. This can be used to allow 121# multiple roots to share the same /conf. |
122# | |
123# | 122# |
123# |
|
124# You will almost universally want to create the following files under /conf 125# 126# File Content 127# ---------------------------- ---------------------------------- 128# /conf/base/etc/md_size size of /etc filesystem 129# /conf/base/etc/diskless_remount "/etc" 130# /conf/default/etc/rc.conf generic diskless config parameters 131# /conf/default/etc/fstab generic diskless fstab e.g. like this --- 250 unchanged lines hidden --- | 124# You will almost universally want to create the following files under /conf 125# 126# File Content 127# ---------------------------- ---------------------------------- 128# /conf/base/etc/md_size size of /etc filesystem 129# /conf/base/etc/diskless_remount "/etc" 130# /conf/default/etc/rc.conf generic diskless config parameters 131# /conf/default/etc/fstab generic diskless fstab e.g. like this --- 250 unchanged lines hidden --- |