1 |
laffer1 |
169 |
Updating Information for MidnightBSD users |
2 |
laffer1 |
2 |
|
3 |
laffer1 |
273 |
Items affecting the mports and packages system can be found in |
4 |
|
|
/usr/mports/UPDATING. |
5 |
laffer1 |
2 |
|
6 |
laffer1 |
1642 |
20080528: |
7 |
|
|
Sendmail 8.14.3 |
8 |
|
|
|
9 |
laffer1 |
1598 |
20080516: |
10 |
|
|
ssh-vulnkey allows you to look for vulnerable ssh keys that |
11 |
|
|
were generated on Debian and Ubuntu hosts over the last |
12 |
|
|
few years. sshd can block offending keys with a configuration |
13 |
|
|
option. |
14 |
|
|
|
15 |
|
|
The elf note on binaries is now set to MidnightBSD. |
16 |
|
|
|
17 |
|
|
20080514: |
18 |
|
|
Fixed a number of problems with pcc. It is not yet connected |
19 |
|
|
to the build, but usable on i386 hosts. You may use it |
20 |
|
|
by make; make install in /usr/src/usr.bin/pcc. It will |
21 |
|
|
install in /usr/local as some of the files conflict with |
22 |
|
|
GCC versions. __MidnightBSD__ is defined in PCC as well. |
23 |
|
|
|
24 |
|
|
System headers were fixed to allow pcc to compile many binaries |
25 |
|
|
on MidnightBSD. bin/cp will work now for instance. |
26 |
|
|
|
27 |
laffer1 |
1561 |
20080430: |
28 |
|
|
__MidnightBSD__ is now defined via gcc. This can be tested |
29 |
|
|
to determine we're running on MidnightBSD in the preprocessor. |
30 |
|
|
|
31 |
laffer1 |
1559 |
20080429: |
32 |
|
|
Import bind 9.4.2 with threading |
33 |
|
|
|
34 |
|
|
libpthread (KSE) and libthr are built earlier |
35 |
|
|
|
36 |
|
|
pcvt(4) removed! |
37 |
|
|
|
38 |
|
|
Alias added for core2 cpus. |
39 |
|
|
|
40 |
|
|
Alpha and PC98 only utilities removed from usr/sbin |
41 |
|
|
|
42 |
|
|
syslogd, adduser, rmuser, mergemaster and mailwrapper have been |
43 |
|
|
improved. See the man pages for info. |
44 |
|
|
|
45 |
|
|
periodic scripts will not send emails with empty message bodies. |
46 |
|
|
See mailwrapper fix. |
47 |
|
|
|
48 |
laffer1 |
1462 |
20080410: |
49 |
|
|
Sync cpdup with DragonFly. Add parallel transaction support and |
50 |
|
|
-l flag to line-buffer stdout and stderr. |
51 |
|
|
|
52 |
laffer1 |
1456 |
20080406: |
53 |
laffer1 |
1462 |
Import bzip2 1.05 |
54 |
laffer1 |
1456 |
Import OpenSSH 4.9p1 |
55 |
|
|
|
56 |
laffer1 |
1432 |
20080322: |
57 |
|
|
The default umask was changed to 022. |
58 |
|
|
|
59 |
|
|
/usr/X11R6 paths were removed from several config files. |
60 |
|
|
|
61 |
|
|
.mkshrc files are now installed for root. |
62 |
|
|
|
63 |
laffer1 |
1420 |
20080316: |
64 |
|
|
FIx a problem with gif0 tunnels and neighbors with IPV6. |
65 |
|
|
|
66 |
|
|
20080312: |
67 |
|
|
Add lndir from X.org. This aides in the porting of MirPorts. |
68 |
|
|
|
69 |
|
|
New OS versions were added to the mapage code (groff) |
70 |
|
|
|
71 |
|
|
20080310: |
72 |
|
|
Correct a buffer overflow in ppp. |
73 |
|
|
|
74 |
|
|
20080308: |
75 |
|
|
Remove /usr/X11R6 from manpath config. |
76 |
|
|
|
77 |
|
|
20080307: |
78 |
|
|
Atheros driver no longer has several options set |
79 |
|
|
which corrects building in tinderbox on all three platforms. |
80 |
|
|
|
81 |
|
|
Added a new macro to sx.h which returns true if the current |
82 |
|
|
thread holds an exclusive lock on a specifix sx. |
83 |
|
|
|
84 |
|
|
Removed OS/2's HPFS file system. It's not maintained and |
85 |
|
|
I don't know anyone using OS/2 or ecomstation these days. |
86 |
|
|
My copy is in the closet collecting dust. |
87 |
|
|
|
88 |
|
|
20080306: |
89 |
|
|
Synced tinderbox with FreeBSD. Modified it for MidnightBSD. |
90 |
|
|
Developers can now use it to check src builds. |
91 |
|
|
|
92 |
|
|
20080303: |
93 |
|
|
Add mksh to /etc/shells, made some adjustments to options |
94 |
|
|
for mksh builds per suggestion upstream. |
95 |
|
|
|
96 |
|
|
USB HID table updated with modern hardware list. |
97 |
|
|
|
98 |
|
|
Updated BSD family true (we're not in there yet) |
99 |
|
|
|
100 |
|
|
iso3166 file updated and import of tzdata2007k for |
101 |
|
|
new time zones. |
102 |
|
|
|
103 |
|
|
Updated mksh to latest version R33. |
104 |
|
|
|
105 |
|
|
20080228: |
106 |
|
|
Remplaced the random IP id generation code with a new |
107 |
|
|
version by Amit Klein. |
108 |
|
|
|
109 |
|
|
20080221: |
110 |
|
|
Sendfile write only permissions fix. |
111 |
|
|
|
112 |
|
|
Removed some HPFS and PC98 code. |
113 |
|
|
|
114 |
|
|
iso639 file sycned with DragonFly. |
115 |
|
|
|
116 |
|
|
20080128: |
117 |
|
|
Changed NTP configuration so that ips aren't cached |
118 |
|
|
so multiple servers are used. |
119 |
|
|
|
120 |
|
|
Fix an issue with fork() in libpthread. |
121 |
|
|
|
122 |
|
|
20080121: |
123 |
|
|
Add virtualization detection to set the HZ rate |
124 |
|
|
according to a VM present. VMWare and Parallels |
125 |
|
|
should work better like this. |
126 |
|
|
|
127 |
|
|
Change to full x11 install in sysinstall. Add |
128 |
|
|
xorg 7 support. |
129 |
|
|
|
130 |
|
|
20080115: |
131 |
|
|
Fix the handling of PTY's. CVE-2008-0216 |
132 |
|
|
|
133 |
|
|
20080105: |
134 |
|
|
mport delete code added, USE_MPORT_TOOLS knob aded. |
135 |
|
|
|
136 |
laffer1 |
1363 |
20080101: |
137 |
|
|
Happy New Year |
138 |
|
|
|
139 |
laffer1 |
1345 |
20071123: |
140 |
|
|
Update sendmail to 8.14.2 |
141 |
|
|
|
142 |
laffer1 |
1339 |
20071120: |
143 |
|
|
Update system compiler to gcc 3.4.6. |
144 |
|
|
|
145 |
laffer1 |
1345 |
20071023: |
146 |
|
|
Updated mksh to R31d. |
147 |
|
|
|
148 |
laffer1 |
1228 |
20070911: |
149 |
|
|
Updated mksh to version R31b. |
150 |
|
|
|
151 |
|
|
Fixed stderr output in libpthread. Previously it was |
152 |
|
|
written to stdout. |
153 |
|
|
|
154 |
laffer1 |
1214 |
20070831: |
155 |
|
|
Added dot.mkshrc file to support the recent change to |
156 |
|
|
mksh from OpenBSD's ksh derived from pdksh. |
157 |
|
|
|
158 |
|
|
Added new firewall configuration. ipfw is enabled by default |
159 |
|
|
with a "desktop" configuration. Consult /etc/rc.firewall |
160 |
|
|
or ipfw show to see the ruleset used. You can disable |
161 |
|
|
ipfw by setting firewall_enable="NO" in /etc/rc.conf This |
162 |
|
|
change only effects IPv4. IPv6 does not have a firewall |
163 |
|
|
enabled by default. |
164 |
|
|
|
165 |
laffer1 |
1192 |
20070814: |
166 |
|
|
Removed GNU tar source. We've been using BSD tar |
167 |
|
|
for awhile. |
168 |
|
|
|
169 |
laffer1 |
1143 |
20070806: |
170 |
|
|
Finished removing umapfs and autofs from the tree. |
171 |
|
|
|
172 |
|
|
20070804: |
173 |
|
|
BIND and Tcpdump have been patched for recent vulnerabilities. |
174 |
|
|
|
175 |
|
|
We switched to BSD cpio (pax). |
176 |
|
|
|
177 |
laffer1 |
1060 |
20070719: |
178 |
|
|
Imported cpdup from DragonFly as /bin/cpdup |
179 |
|
|
|
180 |
laffer1 |
1055 |
20070716: |
181 |
|
|
Update GNU cpio to 2.8. |
182 |
|
|
|
183 |
laffer1 |
939 |
20070410: |
184 |
|
|
cvs was updated to 1.12.13. cvsbug was removed. |
185 |
|
|
cvs now behaves similarly to DragonFly's cvs with |
186 |
|
|
most of their local changes. |
187 |
|
|
|
188 |
|
|
20070409: |
189 |
|
|
RELENG_0_1 was created. More aggresive changes will |
190 |
|
|
continue here. |
191 |
|
|
|
192 |
laffer1 |
906 |
20070406: |
193 |
|
|
Back out propolice. propolice caused several problems |
194 |
|
|
with our threading libraries libthr and libpthread. |
195 |
|
|
curthread was often NULL after the patch and many |
196 |
|
|
multithreaded applications would crash. We plan to |
197 |
|
|
work on either bringing in gcc 4.1 or developing a new |
198 |
|
|
patch which also corrects our threading issues later. |
199 |
|
|
|
200 |
|
|
It is more important to have a stable system for our |
201 |
|
|
mport work and other projects at this time. |
202 |
|
|
|
203 |
laffer1 |
907 |
This is not a clean removal. It is recommended that you |
204 |
|
|
have a recently SNAP CD handy. You can either reinstall |
205 |
|
|
or perform a make buildworld and make buildkernel and |
206 |
|
|
make installkernel. Reboot on the cd and copy the contents |
207 |
|
|
of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin, |
208 |
|
|
/usr/lib, and /usr/libexec to the respective directories on |
209 |
|
|
your disk. Then you should be able to boot into single user |
210 |
|
|
mode and run make installworld. You will need to run |
211 |
|
|
chflags noschg on some of the files if you can't overwrite |
212 |
|
|
them. |
213 |
|
|
|
214 |
|
|
You will get __guard missing errors since we had to remove |
215 |
|
|
this from libc. |
216 |
|
|
|
217 |
|
|
You will need to rebuild any ports built while propolice was |
218 |
|
|
installed. |
219 |
|
|
|
220 |
archite |
886 |
20070401: |
221 |
|
|
Importing propolice into MidnightBSD. Propolice is going to |
222 |
|
|
provide us with much greater security and stability in the |
223 |
|
|
long run. If upgrading from a pre-propolice system, please |
224 |
|
|
follow the these instructions: |
225 |
|
|
|
226 |
|
|
cd /usr/src/lib/libc && make obj && make && make install |
227 |
|
|
cd /usr/src/gnu/usr.bin/cc && make obj && make && make install |
228 |
laffer1 |
893 |
cd /usr/src/lib/libpthread && make obj && make && make install |
229 |
|
|
cd /usr/src/lib/libthr && make obj && make && make install |
230 |
archite |
886 |
buildworld and kernel |
231 |
|
|
|
232 |
|
|
It is adviced that any mports which were installed and/or built |
233 |
|
|
prior to the propolice update also be updated. If any errors |
234 |
|
|
or issue are encounted, please contact security@midnightbsd.org |
235 |
|
|
and we will be sure to investigate and come up with an expeditious |
236 |
|
|
fix. |
237 |
|
|
|
238 |
laffer1 |
842 |
20070314: |
239 |
|
|
Remove send-pr from src. |
240 |
|
|
|
241 |
|
|
Switch to NetBSD's gzip. |
242 |
|
|
|
243 |
|
|
Bump MBSD minor revision. |
244 |
|
|
|
245 |
laffer1 |
832 |
20070313: |
246 |
|
|
Imported OpenSSH 4.6p1. |
247 |
|
|
|
248 |
|
|
Imported FreeBSD's libarchive and updated tar to work with it. |
249 |
|
|
|
250 |
|
|
Disabled debug statements cluttering up /var/log/messages for |
251 |
|
|
the tcp autobuf patch applied previously. |
252 |
|
|
|
253 |
laffer1 |
807 |
20070312: |
254 |
|
|
Synced several audio changes from FreeBSD 6.1. Removed the |
255 |
|
|
BSD Daemon files from src/share. |
256 |
|
|
|
257 |
laffer1 |
775 |
20070308: |
258 |
|
|
Added mfi which supports LSI Logic MegaRAID SAS devices including |
259 |
|
|
the Dell perc5i. |
260 |
|
|
|
261 |
archite |
726 |
20070206: |
262 |
|
|
Imported OpenBSD's sudo into source. Please install |
263 |
|
|
/usr/src/usr.bin/sudo/lib first before building. |
264 |
|
|
|
265 |
|
|
Those who install from a snapshot after this date |
266 |
|
|
will not be effected. |
267 |
|
|
|
268 |
laffer1 |
708 |
20070119: |
269 |
|
|
Added audit group. Be sure to add audit to your /etc/group file |
270 |
|
|
before installing world. |
271 |
|
|
|
272 |
|
|
hostapd was updated to 0.4.8. |
273 |
|
|
|
274 |
|
|
An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to |
275 |
|
|
unbreak world. |
276 |
|
|
|
277 |
|
|
wpa_supplicant was updated. |
278 |
|
|
|
279 |
laffer1 |
775 |
For stability and compatibility reasons, it was decided that MidnightBSD |
280 |
|
|
sync with FreeBSD 6.1 Release. Nearly every change between the original |
281 |
|
|
fork date of February 24, 2006 and the release of FreeBSD 6.1 in May |
282 |
|
|
2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and |
283 |
|
|
will not sync every little change with FreeBSD. |
284 |
laffer1 |
708 |
|
285 |
laffer1 |
477 |
20061231: |
286 |
|
|
Updated COPYRIGHT for 2007. |
287 |
|
|
|
288 |
|
|
Updated and bumped libutil after importing NetBSD efun(3) functions. |
289 |
|
|
|
290 |
|
|
Added MidnightBSD_version and bumped the FreeBSD version as we've |
291 |
|
|
synced all commits between the fork and that version. It is now safe |
292 |
|
|
to assume MidnightBSD is compatible with FreeBSD RELENG_6 from |
293 |
|
|
Feb 26, 2006. |
294 |
|
|
|
295 |
|
|
Added spell(1) and deroff(1) from NetBSD. Also added additional |
296 |
|
|
dict files to work with it. /usr/share/dict/american, |
297 |
|
|
/usr/share/dict/british and /usr/share/dict/special/math |
298 |
|
|
|
299 |
|
|
Numerous man page and bug fixes. |
300 |
|
|
|
301 |
laffer1 |
352 |
20061226: |
302 |
|
|
Setup /usr/share/examples/cvsup SUPfiles for the new |
303 |
laffer1 |
376 |
MidnightBSD CVSup server. |
304 |
laffer1 |
352 |
|
305 |
laffer1 |
376 |
Fix a bug in burncd where it would continue forever while |
306 |
|
|
erasing CDRW media. |
307 |
|
|
|
308 |
|
|
Add csup to /usr/bin. csup is a CVSup replacement written |
309 |
|
|
in C. |
310 |
|
|
|
311 |
|
|
Fixed a bug with bsnmpd build from Oct 30. |
312 |
|
|
|
313 |
|
|
Corrected some race conditions and fixed a few bugs in |
314 |
|
|
geom. Imported changes from FreeBSD RELENG_6. |
315 |
|
|
|
316 |
laffer1 |
352 |
20061225: |
317 |
|
|
Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c |
318 |
|
|
that caused long double to long and long long |
319 |
|
|
conversion of negative numbers to always result in -1. |
320 |
|
|
|
321 |
|
|
20061221: |
322 |
|
|
Fixed acpi_battery.c to not report an ERROR if no |
323 |
|
|
batteries are present. |
324 |
|
|
|
325 |
|
|
Performed some minor updates on the RL and RE NIC drivers. |
326 |
|
|
RL should no longer panic when trying to print errors. |
327 |
|
|
|
328 |
|
|
Corrected a bug with TTY. |
329 |
|
|
|
330 |
|
|
20061218: |
331 |
|
|
Corrected a bug with libpthread where newly created suspended |
332 |
|
|
threads don't get scheduled. |
333 |
|
|
|
334 |
|
|
20061206: |
335 |
|
|
Fixed a typo with the firewire security patch. |
336 |
|
|
|
337 |
|
|
20061129: |
338 |
|
|
Minor cleanups to utilities in bin. |
339 |
|
|
|
340 |
|
|
Fixed msdos file system short file name behavior to match |
341 |
|
|
FreeBSD. |
342 |
|
|
|
343 |
laffer1 |
325 |
20061031: |
344 |
|
|
Updated man pages in section 7. |
345 |
|
|
|
346 |
|
|
20061030: |
347 |
|
|
Updated sys/dev/drm to support intel 915 and radeon |
348 |
|
|
r300 cards properly. |
349 |
|
|
|
350 |
|
|
Synced snmpd with FreeBSD-stable. |
351 |
|
|
|
352 |
|
|
Fixed a bug in rm which could cause data loss. |
353 |
|
|
|
354 |
laffer1 |
305 |
20061027: |
355 |
|
|
Added Intel ICH8 and nForce 5 support to ATA. cam, mpt, |
356 |
|
|
random, kbdmux, atkbd, and usb were updated. Changes |
357 |
|
|
to clearing registers on SSE enabled processors (i386) |
358 |
|
|
commited. |
359 |
|
|
|
360 |
|
|
lukemftpd updated. |
361 |
|
|
|
362 |
|
|
openssh rc script was altered which effects initial |
363 |
|
|
seeding. |
364 |
|
|
|
365 |
laffer1 |
273 |
20061014: |
366 |
|
|
Workaround for em driver problem on shared IRQ. |
367 |
|
|
|
368 |
|
|
Started removal of alpha support. |
369 |
|
|
|
370 |
|
|
20061013: |
371 |
|
|
ATA driver was updated. USB/USB1/USB2 types added. |
372 |
|
|
|
373 |
|
|
20061010: |
374 |
laffer1 |
305 |
OpenSSH was updated to 4.4p1. |
375 |
laffer1 |
273 |
|
376 |
laffer1 |
169 |
20060909: |
377 |
|
|
OpenNTPD was added to MidnightBSD. Run make delete-old to remove |
378 |
|
|
the old ntpd daemon. |
379 |
laffer1 |
63 |
|
380 |
laffer1 |
169 |
cat has a new option -D which allows you to timestamp output |
381 |
|
|
on a per line basis. |
382 |
laffer1 |
5 |
|
383 |
laffer1 |
169 |
The kernel has a keyboard mux which allows you to have multiple |
384 |
|
|
keyboard connected simultaneously. USB keyboard support was also |
385 |
|
|
improved with this patch. |
386 |
laffer1 |
5 |
|
387 |
laffer1 |
169 |
The Intel em driver was updated. Network performance was greatly |
388 |
|
|
increased on many systems. Additional models are supported. |
389 |
laffer1 |
5 |
|
390 |
laffer1 |
169 |
The ATA driver was patched to fix a potential deadlock. |
391 |
laffer1 |
5 |
|
392 |
laffer1 |
169 |
Bind was patched to fix a potential denial of service condition. |
393 |
laffer1 |
5 |
|
394 |
laffer1 |
169 |
20060817: |
395 |
|
|
ksh has been added to the base system. If you previously had |
396 |
|
|
the port installed, it will be overwritten on the next buildworld. |
397 |
laffer1 |
5 |
|
398 |
|
|
|
399 |
|
|
|
400 |
laffer1 |
2 |
To build a kernel |
401 |
|
|
----------------- |
402 |
laffer1 |
169 |
If you are updating from a prior version of MidnightBSD (even one just |
403 |
laffer1 |
2 |
a few days old), you should follow this procedure. With a |
404 |
|
|
/usr/obj tree with a fresh buildworld, |
405 |
|
|
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE |
406 |
|
|
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE |
407 |
|
|
|
408 |
|
|
To test a kernel once |
409 |
|
|
--------------------- |
410 |
|
|
If you just want to boot a kernel once (because you are not sure |
411 |
|
|
if it works, or if you want to boot a known bad kernel to provide |
412 |
|
|
debugging information) run |
413 |
|
|
make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel |
414 |
|
|
nextboot -k testkernel |
415 |
|
|
|
416 |
|
|
To just build a kernel when you know that it won't mess you up |
417 |
|
|
-------------------------------------------------------------- |
418 |
|
|
This assumes you are already running a 6.X system. Replace |
419 |
|
|
${arch} with the architecture of your machine (e.g. "i386", |
420 |
laffer1 |
273 |
"amd64", "ia64", "pc98", "sparc64", etc). |
421 |
laffer1 |
2 |
|
422 |
|
|
cd src/sys/${arch}/conf |
423 |
|
|
config KERNEL_NAME_HERE |
424 |
|
|
cd ../compile/KERNEL_NAME_HERE |
425 |
|
|
make depend |
426 |
|
|
make |
427 |
|
|
make install |
428 |
|
|
|
429 |
|
|
If this fails, go to the "To build a kernel" section. |
430 |
|
|
|
431 |
|
|
To rebuild everything and install it on the current system. |
432 |
|
|
----------------------------------------------------------- |
433 |
|
|
# Note: sometimes if you are running current you gotta do more than |
434 |
|
|
# is listed here if you are upgrading from a really old current. |
435 |
|
|
|
436 |
|
|
<make sure you have good level 0 dumps> |
437 |
|
|
make buildworld |
438 |
|
|
make kernel KERNCONF=YOUR_KERNEL_HERE |
439 |
|
|
[1] |
440 |
|
|
<reboot in single user> [3] |
441 |
|
|
mergemaster -p [5] |
442 |
|
|
make installworld |
443 |
laffer1 |
5 |
make delete-old |
444 |
laffer1 |
2 |
mergemaster [4] |
445 |
|
|
<reboot> |
446 |
|
|
|
447 |
|
|
|
448 |
|
|
To cross-install current onto a separate partition |
449 |
|
|
-------------------------------------------------- |
450 |
|
|
# In this approach we use a separate partition to hold |
451 |
|
|
# current's root, 'usr', and 'var' directories. A partition |
452 |
|
|
# holding "/", "/usr" and "/var" should be about 2GB in |
453 |
|
|
# size. |
454 |
|
|
|
455 |
|
|
<make sure you have good level 0 dumps> |
456 |
|
|
<boot into -stable> |
457 |
|
|
make buildworld |
458 |
|
|
make buildkernel KERNCONF=YOUR_KERNEL_HERE |
459 |
|
|
<maybe newfs current's root partition> |
460 |
|
|
<mount current's root partition on directory ${CURRENT_ROOT}> |
461 |
|
|
make installworld DESTDIR=${CURRENT_ROOT} |
462 |
|
|
cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd |
463 |
|
|
make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} |
464 |
|
|
cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd |
465 |
|
|
<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> |
466 |
|
|
<reboot into current> |
467 |
|
|
<do a "native" rebuild/install as described in the previous section> |
468 |
|
|
<maybe install compatibility libraries from src/lib/compat> |
469 |
|
|
<reboot> |
470 |
|
|
|
471 |
|
|
|
472 |
|
|
To upgrade in-place from 5.x-stable or higher to 6.x-stable |
473 |
|
|
----------------------------------------------------------- |
474 |
|
|
<make sure you have good level 0 dumps> |
475 |
|
|
make buildworld [9] |
476 |
|
|
make kernel KERNCONF=YOUR_KERNEL_HERE [8] |
477 |
|
|
[1] |
478 |
|
|
<reboot in single user> [3] |
479 |
|
|
mergemaster -p [5] |
480 |
|
|
make installworld |
481 |
laffer1 |
5 |
make delete-old |
482 |
laffer1 |
2 |
mergemaster -i [4] |
483 |
|
|
<reboot> |
484 |
|
|
|
485 |
|
|
Make sure that you've read the UPDATING file to understand the |
486 |
|
|
tweaks to various things you need. At this point in the life |
487 |
|
|
cycle of current, things change often and you are on your own |
488 |
|
|
to cope. The defaults can also change, so please read ALL of |
489 |
|
|
the UPDATING entries. |
490 |
|
|
|
491 |
|
|
Also, if you are tracking -current, you must be subscribed to |
492 |
|
|
freebsd-current@freebsd.org. Make sure that before you update |
493 |
|
|
your sources that you have read and understood all the recent |
494 |
|
|
messages there. If in doubt, please track -stable which has |
495 |
|
|
much fewer pitfalls. |
496 |
|
|
|
497 |
|
|
[1] If you have third party modules, such as vmware, you |
498 |
|
|
should disable them at this point so they don't crash your |
499 |
|
|
system on reboot. |
500 |
|
|
|
501 |
|
|
[3] From the bootblocks, boot -s, and then do |
502 |
|
|
fsck -p |
503 |
|
|
mount -u / |
504 |
|
|
mount -a |
505 |
|
|
cd src |
506 |
|
|
adjkerntz -i # if CMOS is wall time |
507 |
|
|
Also, when doing a major release upgrade, it is required that |
508 |
|
|
you boot into single user mode to do the installworld. |
509 |
|
|
|
510 |
|
|
[4] Note: This step is non-optional. Failure to do this step |
511 |
|
|
can result in a significant reduction in the functionality of the |
512 |
|
|
system. Attempting to do it by hand is not recommended and those |
513 |
|
|
that pursue this avenue should read this file carefully, as well |
514 |
|
|
as the archives of freebsd-current and freebsd-hackers mailing lists |
515 |
|
|
for potential gotchas. |
516 |
|
|
|
517 |
|
|
[5] Usually this step is a noop. However, from time to time |
518 |
|
|
you may need to do this if you get unknown user in the following |
519 |
|
|
step. It never hurts to do it all the time. |
520 |
|
|
|
521 |
|
|
[8] In order to have a kernel that can run the 5.x binaries |
522 |
|
|
needed to do an installworld, you must include the COMPAT_FREEBSD5 |
523 |
|
|
option in your kernel. Failure to do so may leave you with a system |
524 |
|
|
that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 |
525 |
|
|
is required to run the 5.x binaries on more recent kernels. |
526 |
|
|
|
527 |
|
|
Make sure that you merge any new devices from GENERIC since the |
528 |
|
|
last time you updated your kernel config file. |
529 |
|
|
|
530 |
|
|
[9] When checking out sources, you must include the -P flag to have |
531 |
|
|
cvs prune empty directories. |
532 |
|
|
|
533 |
|
|
If CPUTYPE is defined in your /etc/make.conf, make sure to use the |
534 |
|
|
"?=" instead of the "=" assignment operator, so that buildworld can |
535 |
|
|
override the CPUTYPE if it needs to. |
536 |
|
|
|
537 |
|
|
MAKEOBJDIRPREFIX must be defined in an environment variable, and |
538 |
|
|
not on the command line, or in /etc/make.conf. buildworld will |
539 |
|
|
warn if it is improperly defined. |
540 |
|
|
|
541 |
|
|
Copyright information: |
542 |
|
|
|
543 |
|
|
Copyright 1998-2005 M. Warner Losh. All Rights Reserved. |
544 |
|
|
|
545 |
|
|
Redistribution, publication, translation and use, with or without |
546 |
|
|
modification, in full or in part, in any form or format of this |
547 |
|
|
document are permitted without further permission from the author. |
548 |
|
|
|
549 |
|
|
THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR |
550 |
|
|
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
551 |
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
552 |
|
|
DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, |
553 |
|
|
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
554 |
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
555 |
|
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
556 |
|
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
557 |
|
|
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
558 |
|
|
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
559 |
|
|
POSSIBILITY OF SUCH DAMAGE. |
560 |
|
|
|
561 |
|
|
If you find this document useful, and you want to, you may buy the |
562 |
|
|
author a beer. |
563 |
|
|
|
564 |
|
|
Contact Warner Losh if you have any questions about your use of |
565 |
|
|
this document. |
566 |
|
|
|
567 |
laffer1 |
5 |
$FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $ |
568 |
laffer1 |
1642 |
$MidnightBSD: src/UPDATING,v 1.37 2008/05/16 22:38:32 laffer1 Exp $ |