View | Details | Raw Unified | Return to bug 166484
Collapse All | Expand All

(-)etc/rc.initdiskless (-4 / +19 lines)
Lines 39-45 Link Here
39
# for which memory filesystems will be created and filled,
39
# for which memory filesystems will be created and filled,
40
# and T is one of the "template" directories below:
40
# and T is one of the "template" directories below:
41
#
41
#
42
#  base		universal base, typically a replica of the original root;
42
#  base.${rel}	universal base for the given major release, typically a 
43
#		replica of the original root;
44
#  base		universal base, typically a replica of the original root,
45
#		effective only if base.${rel} does not exist;
43
#  default	secondary universal base, typically overriding some
46
#  default	secondary universal base, typically overriding some
44
#		of the files in the original root;
47
#		of the files in the original root;
45
#  ${ipba}	where ${ipba} is the assigned broadcast IP address
48
#  ${ipba}	where ${ipba} is the assigned broadcast IP address
Lines 53-59 Link Here
53
#  ip/${ip}	same as above
56
#  ip/${ip}	same as above
54
#
57
#
55
# Template directories are scanned in the order they are listed above,
58
# Template directories are scanned in the order they are listed above,
56
# with each successive directory overriding (merged into) the previous one;
59
# with each successive directory overriding (merged into) the previous one
60
# (except in the case of the base directory, where the release-specific
61
# base is chosen if exists to help multiple major releases to work together);
57
# non-existing directories are ignored.  The subdirectory forms exist to
62
# non-existing directories are ignored.  The subdirectory forms exist to
58
# help keep the top level /conf manageable in large installations.
63
# help keep the top level /conf manageable in large installations.
59
#
64
#
Lines 261-267 Link Here
261
done
266
done
262
267
263
# The list of directories with template files
268
# The list of directories with template files
264
templates="base default"
269
templates="default"
265
if [ -n "${bootp_ipbca}" ]; then
270
if [ -n "${bootp_ipbca}" ]; then
266
	templates="${templates} ${bootp_ipbca} bcast/${bootp_ipbca}"
271
	templates="${templates} ${bootp_ipbca} bcast/${bootp_ipbca}"
267
fi
272
fi
Lines 275-281 Link Here
275
# If /conf/diskless_remount exists, remount all of /conf.
280
# If /conf/diskless_remount exists, remount all of /conf.
276
handle_remount /conf
281
handle_remount /conf
277
282
278
# Resolve templates in /conf/base, /conf/default, /conf/${bootp_ipbca},
283
# Extract the major revision from uname
284
rel=`expr \`uname -r\` : '\(.\)'`
285
# If we have a "base.${rel}" directory, use that as base, otherwise fall back
286
# to "base"
287
if [ -d "/conf/base.${rel}" ]; then
288
	templates="base.${rel} ${templates}"
289
else
290
	templates="base ${templates}"
291
fi
292
293
# Resolve templates in /conf/base[.${rel}], /conf/default, /conf/${bootp_ipbca},
279
# and /conf/${bootp_ipa}.  For each subdirectory found within these
294
# and /conf/${bootp_ipa}.  For each subdirectory found within these
280
# directories:
295
# directories:
281
#
296
#
(-)share/man/man8/diskless.8 (+9 lines)
Lines 255-260 Link Here
255
.Pp
255
.Pp
256
The scripts provide four
256
The scripts provide four
257
overriding directories situated in
257
overriding directories situated in
258
.Pa /conf/base.<major-release> or
258
.Pa /conf/base ,
259
.Pa /conf/base ,
259
.Pa /conf/default ,
260
.Pa /conf/default ,
260
.Pa /conf/<broadcast-ip> ,
261
.Pa /conf/<broadcast-ip> ,
Lines 267-272 Link Here
267
on the
268
on the
268
.Nm
269
.Nm
269
machine.
270
machine.
271
If you run different major releases, you should maintain a base /etc for
272
each one to provide backwards compatibility for older releases.
273
You can do this by installing major release specific /etc into
274
.Pa /conf/base.<major-release>
275
The
276
.Nm
277
boot script will first look for this release specific base, then
278
the standard base in this order. The more specific base will be used.
270
You can clone the server's
279
You can clone the server's
271
.Pa /etc
280
.Pa /etc
272
here or you can create a special file which tells the
281
here or you can create a special file which tells the

Return to bug 166484