freebsd-skq/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 Correct BD_ADDR entry for "Dummy" device in the default hcsecd.conf. 2006-05-18 17:53:49 +00:00
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 Remove more vestiges of /usr/X11R6, but leave mtree for portmgr. 2007-05-29 06:37:58 +00:00
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 Switch default proto to TCP. 2006-11-06 01:42:11 +00:00
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 Use the new command file feature of ddb(8) to support setting ddb(4) 2008-03-05 18:32:58 +00:00
devd.conf o Add missed semicolon in action script. 2009-05-16 15:12:56 +00:00
devfs.conf
dhclient.conf
disktab Replace duplicate and not quite accurate capabilities 2006-10-14 16:39:03 +00:00
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 Finish adding _dhcp user. 2005-06-07 03:41:20 +00:00
gettytab Add autologin entries (al.NNN) for higher console speeds. 2006-04-11 09:54:23 +00:00
group Create group ftp by default. This is gid 14 as this is the historical 2007-06-11 18:36:39 +00:00
hosts
hosts.allow Comment out lines that use example addresses and example.com names so 2006-08-29 09:20:48 +00:00
hosts.equiv
hosts.lpd
inetd.conf Remove reference to the old ftp-proxy implementation, 2007-07-05 09:46:53 +00:00
libalias.conf Fix a regression: let natd load libalias modules before /usr is mounted 2006-10-08 14:02:00 +00:00
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 Add _dhcp user/group as required by the OpenBSD dhclient. 2005-06-06 20:19:56 +00:00
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 - Extend the nsswitch to support Services, Protocols and Rpc 2006-04-28 12:03:38 +00:00
nsmb.conf
nsswitch.conf Install /etc/nsswitch.conf statically rather than generating it at 2006-05-03 15:14:47 +00:00
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 Synchronize pf.os with OpenBSD. 2006-10-23 05:09:44 +00:00
phones Kill the default phone numbers. 2006-08-31 21:13:12 +00:00
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 Update /etc/protocols with IANA list updated 2007-02-12 2007-05-20 03:55:22 +00:00
rc Remove pointless informational message. 2008-06-23 04:18:22 +00:00
rc.bsdextended Clean up, comment out non-base utilities, fix up comments. 2006-04-22 11:02:44 +00:00
rc.firewall Allow the network addresses and interface names for the "client" and 2008-08-15 19:20:59 +00:00
rc.firewall6 o Correct an info about "Firewalls and Internet Security" book: name, 2008-01-12 19:02:09 +00:00
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 Use the udp protocol in favor of the nonexistant upd protocol in the 2007-09-21 01:26:00 +00:00
shells
snmpd.config o Fix a comment: refer to the write community name by the OID not by 2006-12-31 11:19:48 +00:00
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