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