ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Download File | Root Listing
root/midnightbsd-cvs/src/UPDATING
Revision: 1.79
Committed: Fri Feb 5 00:58:03 2010 UTC (14 years, 3 months ago) by laffer1
Branch: MAIN
Changes since 1.78: +5 -1 lines
Log Message:
fix sftp on amd64.

File Contents

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