Diff
Logged in as anonymous

Differences From Artifact [0844abfe60]:

To Artifact [b90d2e56a7]:


128
129
130
131
132
133
134
135
136


137
138

139
140

141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158



159
160
161
162

163
164
165
166
167
168
169
128
129
130
131
132
133
134


135
136
137

138
139

140
141
142
143

144
145
146
147
148
149
150
151
152
153
154
155
156

157
158
159
160
161
162

163
164
165
166
167
168
169
170







-
-
+
+

-
+

-
+



-













-
+
+
+



-
+







.endfor

ldconfig: mountlate
	echo "MRC:$@> Initializing shared libraries: ${ldc}"; \
	ldconfig -elf ${ldc}

microcode: mountlate
.if exists(/usr/local/share/cpucontrol)
	echo "MRC:$@> Updating." ;\
	test -d /usr/local/share/cpucontrol || exit 0 ;\
	echo "MRC:$@> Updating microcode." ;\
	kldload -n cpuctl || exit 1 ;\
	for cpu in $$(jot "$$(sysctl -n hw.ncpu)" 0); do \
	for cpu in $$(jot ${NCPU} 0); do \
	  ( cpucontrol -u -d /usr/local/share/cpucontrol /dev/cpuctl$${cpu} \
	      || exit 1 \
	    || exit 1 \
	  ) | grep -v '^TEST' ;\
	  cpucontrol -e /dev/cpuctl$${cpu} || exit 1 ;\
	done
.endif

mixers=${:!find /dev -name 'mixer*'!:S/\/dev\///}

mixer: mount cleanvar
	echo "MRC:$@> Restoring levels."
.for mixer in ${mixers}
	test -f /var/db/${mixer}-state || true && mixer -f /dev/${mixer} \
	  `cat /var/db/${mixer}-state`
.endfor

excludes=${NETFS_TYPES:C/:.*//}

mount: root zfs
	echo "MRC:$@> Mount local FS."
	echo "MRC:$@> Mount local FS." ;\
	mount -uo rw -a ;\
	mount ;\
	mount -a -t no${excludes:ts,}

mountlate: NETWORK mount cleanvar runshm devd
	echo "MRC:$@> Mount late FS."
	echo "MRC:$@> Mount late FS." ;\
	mount -a

msgs: mount
	echo "MRC:$@> Making bounds." ;\
	  test ! -d /var/msgs -o -f /var/msgs/bound -o -L /var/msgs/bounds || \
	  echo 0 > /var/msgs/bounds

225
226
227
228
229
230
231
232
233


234
235
236
237
238
239
240
241
226
227
228
229
230
231
232


233
234

235
236
237
238
239
240
241







-
-
+
+
-







	  xargs -n1 -Ifoo dd status=none if=foo of=/dev/random bs=8k ;\
	} || {\
	  dd status=none if=${ENTROPY_FILE} of=/dev/random bs=8k ;\
	} ;\
	sysctl kern.seedenable=0 > /dev/null

root: fsck bootfs
	echo "MRC:$@> Mount root R/W."
	mount -uo rw /
	echo "MRC:$@> Mount root R/W." ;\
	mount -uo rw
	umount -a

rpc_umntall: mountlate NETWORK rpcbind
.if empty(RPC_UMNTALL_ENABLE:tl:Mno)
	echo "MRC:$@> Sending RPC unmount notifications."; \
	test -f /var/db/mounttab || true && \
	  rpc.umntall -k &
.endif
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
266
267
268
269
270
271
272

273
274
275
276
277
278
279







-







	echo "MRC:$@> Setting sysctl defaults."; \
	awk '$$0~/^[ ]*(#.*)?$$/{next}{print}' < /etc/sysctl.conf | \
	  xargs -n1 sysctl
.endif

sysdb: mountlate
	echo "MRC:$@> Building databases."; \
	dev_mkdb; \
	install -c -m 644 -g wheel /dev/null /var/run/utmpx

wlans: kld
	echo "MRC:$@> Configuring wlans."; \
	for dev in $$(sysctl -n net.wlan.devices); do \
	  eval all_wlans=\$${WLANS_$${dev}}; \
	  for wlan in $${all_wlans}; do \