freebsd-nq/etc/rc.d
Pawel Jakub Dawidek d5d7e76d2b Currently there is a problem with fscking UFS file systems created on
top of ZVOLs. The problem is that rc.d/fsck runs before rc.d/zfs. The
latter makes ZVOLs to appear in /dev/. In such case rc.d/fsck cannot
find devfs entry and aborts. We cannot simply move rc.d/zfs before
rc.d/fsck, because we first want kern.hostid to be configured (by
rc.d/hostid). If we won't wait (hostid will be 0) we can reuse disks
which are in use by different systems (eg. in SAN/NAS environment).
We also cannot move rc.d/hostid before rc.d/fsck, because rc.d/hostid on
first system start stores generated kern.hostuuid in /etc/hostid file,
so it needs root file system to be mounted read-write.

The fix is to split rc.d/hostid so that rc.d/hostid (which will now run
before rc.d/fsck) only generates hostid and sets up sysctls, but doesn't
touch root file system and rc.d/hostid_save (which is run after
rc.d/root) and only creates /etc/hostid file.

With that in place, we can move ZVOL initialization to dedicated
rc.d/zvol script which runs before rc.d/fsck.

PR:		conf/120194
Reported by:	James Snow <snow@teardrop.org>
Reviewed by:	brooks
Approved by:	re (kib)
MFC after:	2 weeks
2009-07-29 05:23:52 +00:00
..
abi As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
accounting Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
addswap As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
adjkerntz As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
amd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
apm As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
apmd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
archdep Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
atm1 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm3 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
auditd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
auto_linklocal As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
bgfsck As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
bluetooth With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:11:33 +00:00
bootparams Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
bridge As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
bsnmpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
bthidd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ccd Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
cleanvar As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
cleartmp Align the script more with rc.d/cleanvar (which doesn't output any 2008-06-23 04:42:58 +00:00
cron Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
DAEMON Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
ddb As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
defaultroute Rename the rc.conf(5) knob if_up_delay to defaultroute_delay to better 2009-02-17 11:55:50 +00:00
devd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
devfs As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
dhclient Add very limited support for the isc-dhclient. It will almostly certaintly 2008-04-15 23:03:35 +00:00
dmesg Remove a meaningless KEYWORD 2007-12-08 22:40:31 +00:00
dumpon As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
encswap As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
FILESYSTEMS As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
fsck rc.d/fsck: allow additional options for fsck_y_enable via fsck_y_flags 2009-06-10 19:03:23 +00:00
ftp-proxy Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ftpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
gbde As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
geli As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
geli2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
gssd Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
hcsecd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
hostapd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
hostid Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
hostid_save Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
hostname As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
inetd Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
initrandom As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ip6addrctl As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ip6fw Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfilter Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfs Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfw Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
ipmon Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
ipnat Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipsec Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
ipxrouted As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
jail Small cleanups to the jail script: 2009-06-10 18:18:14 +00:00
kadmind As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kerberos As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
keyserv Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
kldxref As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kpasswdd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ldconfig Move a lot of diagnostic output behind $rc_quiet in scripts that 2008-06-23 04:46:54 +00:00
local Output information only if /etc/rc.local exists. 2008-06-22 16:23:39 +00:00
localpkg As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
lockd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
LOGIN Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
lpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
Makefile Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
mdconfig As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
mdconfig2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
mixer As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
motd Move a lot of diagnostic output behind $rc_quiet in scripts that 2008-06-23 04:46:54 +00:00
mountcritlocal There's no need to announce that we're mounting local filesystems when 2008-07-05 15:19:58 +00:00
mountcritremote Don't say we're going to mount filesystems of a certain type unless 2008-06-22 15:40:19 +00:00
mountd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
mountlate As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
moused Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
mroute6d As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
mrouted Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
msgs As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
named 1. New feature; option to have the script loop until a specified hostname 2009-05-16 20:55:28 +00:00
natd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
netif Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
netoptions As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
network_ipv6 Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
NETWORKING Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
newsyslog Move a lot of diagnostic output behind $rc_quiet in scripts that 2008-06-23 04:46:54 +00:00
nfscbd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsclient As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
nfsd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsserver As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
nfsuserd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nisdomain Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
nscd Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
nsswitch As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ntpd Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
ntpdate - Remove hardcoded /etc/ntp.conf configuration file from ntpdate rc.d script 2006-07-20 10:07:34 +00:00
othermta As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pf Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
pflog Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
pfsync Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
power_profile As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
powerd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ppp As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pppoed As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pwcheck Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
quota Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
random As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rarpd Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
resolv As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rfcomm_pppd_server As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
root Do nextboot -D twice during boot. The first time in rc.d/root which ensures that 2008-03-11 17:21:14 +00:00
route6d Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
routed Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
routing As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rpcbind Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
rtadvd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
rwho Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
savecore Add the ability to run /usr/sbin/crashinfo on a new core dump automatically 2008-08-29 20:30:30 +00:00
sdpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
securelevel Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
sendmail Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
serial With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:12:02 +00:00
SERVERS Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
sppp As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
sshd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
statd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
swap1 Backout previous commit due to PEBKAC 2009-03-11 12:55:12 +00:00
syscons As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
sysctl Oops, restore the recent changes to make startup messages quieter. 2008-07-31 22:13:14 +00:00
syslogd Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
timed Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
tmp - do not create and mount new file systems on top of the old ones on every 2009-05-17 08:25:02 +00:00
ugidfw Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
var As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
virecover Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
watchdogd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
wpa_supplicant As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ypbind Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
yppasswdd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
ypserv Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypset Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypupdated Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypxfrd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
zfs Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
zvol Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00