freebsd-nq/etc
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
..
bluetooth
defaults rc.d/fsck: allow additional options for fsck_y_enable via fsck_y_flags 2009-06-10 19:03:23 +00:00
devd revert r187343 2009-01-16 20:42:43 +00:00
etc.amd64 Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.arm Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.i386 Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.ia64 Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.mips Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.powerpc Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
etc.sparc64 Remove the note about using vt220, which makes no sense at all. 2009-06-14 22:35:33 +00:00
gss Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
mail Add the URL for RFC2142 2009-03-23 00:40:07 +00:00
mtree Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
namedb 1. New feature; option to have the script loop until a specified hostname 2009-05-16 20:55:28 +00:00
pam.d Remove gdm as it is no longer needed. 2009-07-18 16:29:40 +00:00
periodic Rather than using both -prune (which requires directory-first tree traversal) 2009-06-02 07:35:51 +00:00
ppp With uart(4) default, change /dev/cuad# to /dev/cuau# so that 2008-07-19 20:00:18 +00:00
rc.d Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
root
sendmail A no-op commit to simulate the effect of a forced commit so the file 2008-08-31 18:21:15 +00:00
amd.map
apmd.conf
auth.conf
crontab Remove HOME= - this has surprised me several times in the past. 2009-06-14 06:37:19 +00:00
csh.cshrc
csh.login
csh.logout
ddb.conf
devd.conf o Add missed semicolon in action script. 2009-05-16 15:12:56 +00:00
devfs.conf
dhclient.conf
disktab
fbtab
freebsd-update.conf Add /usr/share/man/whatis, /var/db/locate.database, and /var/log to the 2008-08-08 10:36:16 +00:00
ftpusers
gettytab
group
hosts
hosts.allow
hosts.equiv
hosts.lpd
inetd.conf
libalias.conf
login.access
login.conf Usermode portion of the support for swap allocation accounting: 2009-06-23 20:57:27 +00:00
mac.conf
Makefile Welcome to a default installed /etc/ntp.conf 2009-06-07 13:26:57 +00:00
man.alias
master.passwd
minfree
motd
netconfig
netstart Add hostid to the ranks. 2009-03-19 12:52:19 +00:00
network.subr rtsol should not be run on the wireless NIC interfaces directly, 2009-06-26 01:27:16 +00:00
networks
newsyslog.conf The slip.log file got removed along with the MPSAFE tty work. If slip 2008-12-02 16:46:01 +00:00
nls.alias
nscd.conf
nsmb.conf
nsswitch.conf
ntp.conf 1) Use our vendor domain at the pool. 2009-07-13 05:51:33 +00:00
opieaccess
pccard_ether Implement a "quiet" mode for rc.d/netif, which only outputs 2008-06-23 20:50:11 +00:00
pf.os
phones
portsnap.conf Add INDEX-8 to the default portsnap configuration file, and remove INDEX-5. 2009-07-27 20:24:00 +00:00
printcap
profile
protocols
rc Remove pointless informational message. 2008-06-23 04:18:22 +00:00
rc.bsdextended
rc.firewall Allow the network addresses and interface names for the "client" and 2008-08-15 19:20:59 +00:00
rc.firewall6
rc.initdiskless Add support to rc.initdiskless for /conf/T/M/remount_subdir. 2008-09-09 18:40:50 +00:00
rc.resume Change the module example to kldload since this is the resume side. 2008-07-21 22:55:40 +00:00
rc.sendmail
rc.shutdown Instead of killing the 'watchdog' subshell and leaving a sleep for 2009-01-25 10:31:45 +00:00
rc.subr Now that the last of the *.sh scripts are gone from the base, 2009-05-30 21:41:54 +00:00
rc.suspend With uart(4) default, change sio# to uart# so that 2008-07-19 20:12:33 +00:00
regdomain.xml Remove gsm hacks now that we can do this "right": 2009-01-28 19:25:51 +00:00
remote Add ucomX shortcuts just like its uart sibling. 2008-10-27 17:19:14 +00:00
rpc
services
shells
snmpd.config
sysctl.conf
syslog.conf syslog.conf: pop up from logging only ppp messages at the end of file 2009-06-11 15:07:02 +00:00
termcap.small Sync termcap.small with main termcap; add xterm entry for libteken 2009-06-13 13:35:18 +00:00