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