diff options
author | brooks <brooks@FreeBSD.org> | 2005-04-29 23:02:56 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-04-29 23:02:56 +0000 |
commit | 02891f1c55fa404da07d9fecfbd859b48ab3a2f7 (patch) | |
tree | 249bfb21e35a4890089a544e00c3e48a83fa148a /etc/rc | |
parent | f72e92f1b17fcf238bbfedf24af2d5afb0f24928 (diff) | |
download | FreeBSD-src-02891f1c55fa404da07d9fecfbd859b48ab3a2f7.zip FreeBSD-src-02891f1c55fa404da07d9fecfbd859b48ab3a2f7.tar.gz |
To allow /etc to be as minimal as possible in a diskless setup, we need
to run initdiskless before we run rcorder on /etc/rc.d. To allow this,
move /etc/rc.d/initdiskless to /etc/rc.initdiskless and run it directly
from /etc/rc.
Remove /etc/rc.d/preseedrandom as it is no longer necessicary (we start
with entropy unblocked) and was only used by initdiskless when it
was needed.
Discussed on: freebsd-rc
Repocopy by: peter
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -65,6 +65,11 @@ else _boot="start" fi +dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` +if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then + sh /etc/rc.initdiskless +fi + skip="-s nostart" [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] && skip="$skip -s nojail" files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null` |