ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3618
Committed: Thu Jan 20 22:08:10 2011 UTC (13 years, 3 months ago) by laffer1
File size: 27795 byte(s)
Log Message:
bind ++

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.102