Print this page
9696 add /etc/system.d support
Portions contributed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/nsadmin/system
+++ new/usr/src/cmd/nsadmin/system
1 -*ident "%Z%%M% %I% %E% SMI" /* SVR4 1.5 */
2 1 *
3 2 * CDDL HEADER START
4 3 *
5 4 * The contents of this file are subject to the terms of the
6 5 * Common Development and Distribution License, Version 1.0 only
7 6 * (the "License"). You may not use this file except in compliance
8 7 * with the License.
9 8 *
10 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 10 * or http://www.opensolaris.org/os/licensing.
12 11 * See the License for the specific language governing permissions
13 12 * and limitations under the License.
14 13 *
15 14 * When distributing Covered Code, include this CDDL HEADER in each
16 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
17 16 * If applicable, add the following below this CDDL HEADER, with the
18 17 * fields enclosed by brackets "[]" replaced with your own identifying
19 18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 19 *
21 20 * CDDL HEADER END
22 21 *
23 22 *
24 23 * SYSTEM SPECIFICATION FILE
25 24 *
26 25
26 +* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27 +*
28 +* It is not recommended to edit this file directly but rather
29 +* to deliver configuration fragments into files under /etc/system.d;
30 +* files in /etc/system.d are combined in alphabetical order and read by
31 +* the kernel before this file (/etc/system) is processed.
32 +*
33 +* Refer to the system(4) manual page for more information and
34 +* recommendations on naming fragment files.
35 +*
36 +* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37 +
27 38 * moddir:
28 39 *
29 40 * Set the search path for modules. This has a format similar to the
30 41 * csh path variable. If the module isn't found in the first directory
31 42 * it tries the second and so on. The default is /kernel /usr/kernel
32 43 *
33 44 * Example:
34 45 * moddir: /kernel /usr/kernel /other/modules
35 46
36 47
37 48
38 49 * root device and root filesystem configuration:
39 50 *
40 51 * The following may be used to override the defaults provided by
41 52 * the boot program:
42 53 *
43 54 * rootfs: Set the filesystem type of the root.
44 55 *
45 56 * rootdev: Set the root device. This should be a fully
46 57 * expanded physical pathname. The default is the
47 58 * physical pathname of the device where the boot
48 59 * program resides. The physical pathname is
49 60 * highly platform and configuration dependent.
50 61 *
51 62 * Example:
52 63 * rootfs:ufs
53 64 * rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
54 65 *
55 66 * (Swap device configuration should be specified in /etc/vfstab.)
56 67
57 68
58 69
59 70 * exclude:
60 71 *
61 72 * Modules appearing in the moddir path which are NOT to be loaded,
62 73 * even if referenced. Note that `exclude' accepts either a module name,
63 74 * or a filename which includes the directory.
64 75 *
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
65 76 * Examples:
66 77 * exclude: win
67 78 * exclude: sys/shmsys
68 79
69 80
70 81
71 82 * forceload:
72 83 *
73 84 * Cause these modules to be loaded at boot time, (just before mounting
74 85 * the root filesystem) rather than at first reference. Note that
75 -* forceload expects a filename which includes the directory. Also
86 +* forceload expects a filename which includes the directory. Also
76 87 * note that loading a module does not necessarily imply that it will
77 88 * be installed.
78 89 *
79 90 * Example:
80 91 * forceload: drv/foo
81 92
82 93
83 94
84 95 * set:
85 96 *
86 97 * Set an integer variable in the kernel or a module to a new value.
87 98 * This facility should be used with caution. See system(4).
88 99 *
89 100 * Examples:
90 101 *
91 102 * To set variables in 'unix':
92 103 *
93 104 * set nautopush=32
94 105 * set maxusers=40
95 106 *
96 107 * To set a variable named 'debug' in the module named 'test_module'
97 108 *
98 109 * set test_module:debug = 0x13
99 110
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX