sbin/newfs_hammer: Properly allocate root inode and pfs from meta zone
[dragonfly.git] / UPDATING
CommitLineData
d2a0decc
MD
1# Updating Information for DragonFly users.
2#
3#
4# This file should warn you of any pitfalls which you might need to work around
5# when trying to update your DragonFly system. The information below is
6# in reverse-time order, with the latest information at the top.
7#
8# If you discover any problem, please contact the bugs@lists.dragonflybsd.org
9# mailing list with the details.
d2a0decc 10
2a617999
SW
11+-----------------------------------------------------------------------+
12+ UPGRADING DRAGONFLY FROM 4.0 TO LATER VERSIONS +
13+-----------------------------------------------------------------------+
14
cbab4ab1
JM
15SENDMAIL REMOVED FROM BASE
16--------------------------
17
18The only Mail Transfer Agent provided now is DragonFly Mail Agent (dma).
19If the system being upgraded is still configured to use the sendmail
20binaries from base, the "make upgrade" command will fail.
21
22The administrator must change /etc/mail/mailer.conf to switch the
23mailwrapper to dma or a DPorts-based MTA prior to running the upgrade
24command that permanently removes sendmail executables and could
25potentially break a running mail server.
26
27Refer: http://www.dragonflybsd.com/docs/docs/newhandbook/mta/ for
28detailed instructions on how to configure the MTA selection.
29
a7ac1ee9
SW
30_KPOSIX_VERSION and P1003_1B OPTIONS REMOVED
31--------------------------------------------
32
33The _KPOSIX_VERSION and P1003_1B kernel options have been changed to
34no-ops. They can be removed from custom kernel configurations.
35
aa7c3d6b
FT
36SOUND SYSTEM UPDATED FROM FreeBSD 11-CURRENT
37--------------------------------------------
38
39Many more sound devices may be detected.
40
41If the default device choosen isn't to your liking, setting the sysctl
42hw.snd.default_unit to a different number will change it.
43
60a260ad
SW
44SCTP SUPPORT DROPPED
45--------------------
46
47Support for the SCTP protocol has been removed.
48
2a617999
SW
49OLD USB DRIVERS REMOVED
50-----------------------
51
52The old USB stack, along with the kernel config option "device oldusb"
53and the make.conf variable "WANT_OLDUSB" have been removed. This means
54that for custom kernel configuration files which were derived from a
55GENERIC or X86_64_GENERIC file prior to making the usb4bsd stack default,
56various (old USB stack specific) devices will now complain about being
57unknown:
58
59 * oldusb (obviously)
60 * natausb (not yet ported to usb4bsd)
61 * rue (not yet ported to usb4bsd)
62 * ugen (no longer needed in usb4bsd)
63 * urio (not yet ported to usb4bsd)
64 * uscanner (no longer needed in usb4bsd)
65
66They should be removed or commented out in such custom kernel configs.
67
e9b676f1
JM
68GCC 5.0
69-------
70
71The GCC 4.4 compiler has been retired. It has been replaced by a
72[prerelease] version of GCC 5.0. The following make.conf variables no
73longer work: NO_GCC44, NO_OBJC, and NO_CXX. The latter was never
74documented and the latest versions of GCC are partially written in C++
75so a C++ compiler is no longer optional. In practical terms it has not
76been optional for many years as other base components are also written in
77C++. The resource savings by avoiding building Objective-C compiler is
78so small, the complexity added by NO_OBJC internally was deemed a bad
79tradeoff so that is the reason for its removal. Also note that no "info"
80pages are installed with GCC 5.0. This is intentional; they are available
81via the internet if desired over the installed man pages.
82
83Currently, GCC 4.7 is still designated as the primary compiler. After
84GCC 5.0 is released, this may change and these update notes will be
85revised accordingly. DPorts will use GCC 5.0 on this release regardless.
86If GCC 5.0 is unwanted, the make.conf variable NO_GCC50 will block its
87building and installation.
88
89To use GCC 5.0 to build world and kernel, set WORLD_CCVER=gcc50 in
90make.conf before building those targets.
91
0055c35b
SW
92+-----------------------------------------------------------------------+
93+ UPGRADING DRAGONFLY FROM 3.8 TO LATER VERSIONS +
94+-----------------------------------------------------------------------+
95
2a617999 96SMP AND DEVICE_POLLING OPTIONS MADE UNKNOWN
39b3e0a1
SW
97-------------------------------------------
98
99DEVICE_POLLING was replaced by IFPOLL_ENABLE and the former SMP code is
100the default now (even on single-core systems), both for, like, 21 months.
101We kept the options around as no-ops as a convenience, to allow people
102using the same config for the then current release and the then current
103master. That period is now over, so any configs still having those
104options have to be adjusted.
105
10ceb702
SW
106SYSVIPC SYSCALLS MADE NON-OPTIONAL
107----------------------------------
108
109The code related to the SYSVMSG, SYSVSEM and SYSVSHM kernel options is
110now compiled in by default. The options are no-ops for now.
111
79a3e83f
SW
112DEFAULT DRIVER CHANGED FOR LSI "THUNDERBOLT" SERIES RAID CONTROLLERS
113--------------------------------------------------------------------
114
115The default driver for those controllers is now mrsas(4) due to reports
116of file system corruption using the mfi(4) driver. The whole issue (and
117how to deal with potential problems when switching) was explained here:
118
119http://lists.dragonflybsd.org/pipermail/users/2014-July/128703.html
120
121A tunable is provided for letting those controllers still attach via
122the mfi(4) driver, hw.mrsas.mfi_enable (see mrsas(4) manual page).
123
0055c35b
SW
124OLDER NETWORK DRIVERS MOVED TO I386 ONLY
125----------------------------------------
126
127The following drivers have been made i386 only: ed(4), sr(4), ng_sync_ar
128and ng_sync_sr. ed(4) used to be in X86_64_GENERIC, so it has to be
129removed in kernel configs derived from X86_64_GENERIC.
130
e19e3c77 131+-----------------------------------------------------------------------+
62d4130d 132+ UPGRADING DRAGONFLY FROM 3.6 TO LATER VERSIONS +
e19e3c77
SW
133+-----------------------------------------------------------------------+
134
a6a7c140
JS
135UPDATE FROM MOST RECENT 3.6
136---------------------------
137
138Versions of 3.6 built before June 25th have a bug where installworld might
139crash during installation of the new initrd. Upgrade to the latest version
140of 3.6 before updating to 3.8 or later.
141
7c87aae6
SW
142ATM, IPX, NCP AND NWFS SUPPORT DROPPED
143--------------------------------------
6f25d555
SW
144
145Support for the IPX and NCP network protocols and for mouting NetWare
7c87aae6 146file systems has been dropped. Dito for ATM protocol support.
6f25d555
SW
147
148INITRD IMAGES NOW INSTALLED BY DEFAULT
149--------------------------------------
150
151An initial ramdisk image is now installed in /boot/kernel/initrd.img.gz
152
153Older images installed under the file name of initrd.img will be removed
154automatically by the make upgrade process.
155
f0478b8b
SW
156USB4BSD IS NOW THE DEFAULT USB STACK
157------------------------------------
158
159To get back to the old stack, put "WANT_OLDUSB=yes" in /etc/make.conf and
160replace "device usb" with "device oldusb" in the kernel configuration.
161
e19e3c77
SW
162MORE ISA SUPPORT DROPPED
163------------------------
164
165ISA support has been dropped from the following drivers: adv(4), an(4),
166ar(4), cs(4), digi(4), ed(4), ep(4), ex(4), fe(4), lnc(4), sbni(4),
167si(4), sn(4), and stg(4).
168
9332798a 169+-----------------------------------------------------------------------+
62d4130d 170+ UPGRADING DRAGONFLY FROM 3.4 TO LATER VERSIONS +
9332798a
SW
171+-----------------------------------------------------------------------+
172
c04df145
JS
173ABI CHANGE
174----------
175
176Installed third-party software (dports) will have to be rebuilt after upgrade,
177or reinstalled from binary packages.
178
2b455b95
JS
179UPDATING FROM 3.4 TO 3.6
180------------------------
181
182This only applies for this specific upgrade due to locale changes; it is
183not needed for upgrades after 3.6. Please update in this order:
184
185make buildworld
186make buildkernel
187make installworld
188make installkernel
189*reboot*
190make upgrade
191
192See this mailing list post for details:
193http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html
194
9332798a
SW
195CYRIX OPTIONS REMOVED
196---------------------
197
198The following Cyrix related options have been removed: CPU_BTB_EN,
199CPU_CYRIX_NO_LOCK, CPU_DIRECT_MAPPED_CACHE, CPU_DISABLE_5X86_LSSER,
200CPU_FASTER_5X86_FPU, CPU_IORT, CPU_LOOP_EN, CPU_RSTK_EN, CPU_SUSP_HLT,
201CYRIX_CACHE_WORKS, and CYRIX_CACHE_REALLY_WORKS
202
203ISA SUPPORT REMOVED FROM RP(4)
204------------------------------
205
206ISA support has been removed from the rp(4) driver. It is now PCI only.
207
64aeb497 208+-----------------------------------------------------------------------+
62d4130d 209+ UPGRADING DRAGONFLY FROM 3.2 TO LATER VERSIONS +
64aeb497
SW
210+-----------------------------------------------------------------------+
211
d88b9605
SW
212COMPAT_SUNOS OPTION REMOVED
213---------------------------
214
215The COMPAT_SUNOS option has been removed. It was meant to provide binary
216compatibility with SunOS 4.x for the sparc32 port of 4.4BSD.
217
43f215d7
SW
218ISA SOUND CARD SUPPORT REMOVED
219------------------------------
220
221The following modules have been removed (all for ISA sound cards):
222snd_ad1816.ko, snd_ess.ko, snd_mss.ko, snd_sb8.ko, snd_sb16.ko, snd_sbc.ko
223
6100d1de
JM
224GCC 4.7
225-------
226
227DragonFly has switched base compilers. GCC 4.7 is now the default
228compiler and GCC 4.4 is the alternative compiler. The "NO_GCC47" make
229variable ceases to work now.
230
231Users who wish to build only GCC 4.7 have to use NO_GCC44 in the
232/etc/make.conf to prohibit GCC 4.4 from building. However, using it is
233highly discouraged. There are a few packages in pkgsrc that do not build
234with GCC 4.7 and the new "DPorts" system uses GCC 4.4 by default. At
235this time, it is recommended to keep both compilers on the base system.
236
2089bb7c
SW
237SMP OPTION REMOVED
238------------------
239
240The SMP kernel option has been made a no-op. All kernels now feature SMP
241support. If you have 'options SMP' in your kernel config, you can as well
242remove it.
243
1c297ed0
SW
244DEVICE_POLLING OPTION REPLACED BY IFPOLL_ENABLE OPTION, KTR_POLLING REMOVED
245---------------------------------------------------------------------------
640dc18f
SZ
246
247The DEVICE_POLLING kernel option has been made a no-op and it has been
248replaced by IFPOLL_ENABLE. If you have 'options DEVICE_POLLING' in your
249kernel config, you need to change it to IFPOLL_ENABLE.
250
1c297ed0
SW
251Also, the KTR_POLLING kernel option has been removed, so it must be
252removed from kernel configs that have it.
253
558b0a0b
SW
254BUSLOGIC, CYCLADES AND STALLION ISA SUPPORT REMOVED
255---------------------------------------------------
850c4634
SW
256
257The bt(4) driver for Buslogic SCSI adapters has been made PCI only. ISA
258cards will no longer be detected.
259
e6f626a1
SW
260The same has been done for Stallion multiport serial controllers. stli(4)
261has been completely removed (along with the stlload(8) and stlstty(8)
558b0a0b
SW
262utilities) and stl(4) was changed to support only PCI cards. Similarly,
263ISA support was removed from cy(4) too. All these drivers are i386 only.
e6f626a1 264
e98bcb27
SW
265COMPAT_OLDISA OPTION GONE
266-------------------------
267
268The i386 specific COMPAT_OLDISA kernel option has been removed, since
269nothing needs it anymore.
270
c691bb43 271+-----------------------------------------------------------------------+
62d4130d 272+ UPGRADING DRAGONFLY FROM 3.0 TO LATER VERSIONS +
c691bb43
SW
273+-----------------------------------------------------------------------+
274
275APIC_IO OPTION REMOVED
276----------------------
277
278The APIC_IO kernel option is no longer accepted after having been without
279effect for a while. The hw.ioapic_enable tunable now serves its purpose.
280If you have 'options APIC_IO' in your kernel config, you'll have to
281remove it.
282
6d488cc3
SW
283WATCHDOG_ENABLE & HW_WDOG OPTIONS REMOVED
284-----------------------------------------
cf03d6cd
SW
285
286The wdog framework is now compiled into our kernels by default, so the
6d488cc3 287options are no longer needed.
cf03d6cd 288
397ffc5c
SW
289DOSCMD(1) REMOVED
290-----------------
291
292doscmd(1) has been removed. It was i386 only. The doscmd(1) specific
293NO_X make.conf option was removed too.
294
a1404d4f
SW
295GCC 4.7
296-------
297
298GCC 4.7 has been brought in and replaces GCC 4.1 as DragonFly's non-
299default compiler in base (default is still GCC 4.4).
300
301Users who wish to build only GCC 4.4 have to replace NO_GCC41 with
302NO_GCC47 in /etc/make.conf.
303
2508820f
SW
304USB4BSD
305-------
306
307A new USB stack (from FreeBSD) has been brought in. The following
308modules have been ported so far: usb, uhci, ohci, ehci, xhci, umass,
309usfs, uether, if_axe, if_udav, ukbd, ums, uep, uhid, usb_quirk,
310and uaudio.
311
312It is not yet the default. To activate it, WANT_USB4BSD=yes has to
c7200221
SW
313be put in make.conf and device "usb4bsd" (quotes needed) has to
314replace device usb in the kernel config. After that, a full
315build/install/upgrade cycle is needed.
2508820f
SW
316
317Note that this is experimental and incomplete, but we are interested
318in hearing about issues with it, of course.
319
ae0870a3
SW
320ISA SUPPORT REMOVED FROM AIC-6260/6360 DRIVER
321---------------------------------------------
322
323ISA adapter support was dropped from the aic(4) driver.
324
96386d4b 325+-----------------------------------------------------------------------+
62d4130d 326+ UPGRADING DRAGONFLY FROM 2.10 TO LATER VERSIONS +
96386d4b
SW
327+-----------------------------------------------------------------------+
328
329SEVERAL ISA DRIVERS REMOVED
330---------------------------
331
332The following ISA only drivers have been removed along with a couple of
333associated userland tools:
334
335aha(4)
336asc(4) & sasc(1)
337ctx
338dgb(4)
339el(4)
340gpib
341gsc(4) & sgsc(1)
342ie(4)
343labpc(4)
344le(4)
345mse(4)
346rc(4)
347rdp(4)
348spigot
349tw(4) & xten(1) & xtend(8)
350wl(4) & wlconfig(8)
351wt(4)
352
353Note that two of these drivers (aha(4) and ie(4)) are in our GENERIC
354config and one (aha(4)) is in our X86_64_GENERIC kernel configuration
355file.
356
357If buildkernel complains about any of these drivers, just remove them
358from your kernel configuration.
359
919eb219
JM
360BINUTILS 2.20
361-------------
37c5a0db 362Binutils 2.20 has been removed in favor of Binutils 2.22. The accepted
e685772e 363values of BINUTILSVERS are now binutils221 and binutils222 (default).
919eb219 364
83bc1e2a
SW
365BUILDWORLD/-KERNEL PARALLELIZATION WORK
366---------------------------------------
367Due to changes in the way we build with more than one make job, you
368will have to update install(1) and mkdir(1) prior to buildworld if you
369want to build with 'make -j':
370
371cd /usr/src/usr.bin/xinstall; make; make install; make clean
372cd /usr/src/bin/mkdir; make; make install; make clean
373
eca86bd9
SW
374DMA(8) UPGRADE
375--------------
376dma(8) has been upgraded to v0.7 which no longer supports the
377/etc/dma/virtusertable. Some of its functionality has been replaced
378with the MASQUERADE keyword and the EMAIL environment variable (see
379the dma(8) manual page).
380
a4a39c94 381+-----------------------------------------------------------------------+
62d4130d 382+ UPGRADING DRAGONFLY FROM 2.8 TO LATER VERSIONS +
a4a39c94
JS
383+-----------------------------------------------------------------------+
384
b1242318
SW
385GCC 4.4 & BINUTILS 2.21
386-----------------------
30c91f0c 387
b1242318
SW
388GCC 4.4 has been made DragonFly's default compiler and Binutils 2.21 has
389been made DragonFly's default Binutils.
30c91f0c
SW
390
391That means that any settings that set CCVER to 'gcc44' are not needed
392anymore. Instead, CCVER can be set to 'gcc41' to go back to using
393GCC 4.1.
394
b1242318
SW
395It also means that 'binutils221' as a value for BINUTILSVER has no
396effect anymore. 2.17 has been removed and 'binutils220' is available
397as an option.
398
5738210d 399The NO_GCC44 option has been removed and will not affect the build
30c91f0c
SW
400anymore. There is now a NO_GCC41 option that will prevent GCC 4.1 from
401building in a similar fashion.
402
80abb3be 403Note that you must do a full buildworld/buildkernel for upgrading.
30c91f0c 404
a4a39c94 405pkg_radd settings
c983d16e 406-----------------
a4a39c94
JS
407
408The config file for pkg_radd has moved from /etc/settings.conf to
409/etc/pkg_radd.conf. Save the contents of settings.conf before upgrading
410if this is needed. This warning only applies if /etc/settings.conf
411exists. pkg_radd will continue to work with defaults.
412
b79f66dd 413+-----------------------------------------------------------------------+
72fe41d3 414+ 20100927 +
1bb1cc14 415+ UPGRADING DRAGONFLY FROM 2.6 to 2.8 or HEAD +
b79f66dd
JT
416+-----------------------------------------------------------------------+
417
72fe41d3 418OpenSSL
c983d16e 419--------
72fe41d3
PA
420
421OpenSSL has been upgraded, and SHLIB_MAJOR was bumped for libssh and libcrypto.
422This shouldn't break any 3rd-party software, but you'll need to recompile your
4233rd-party software if you want it to link against the new version of OpenSSL.
424
8eb0b612 425Loader
c983d16e 426-------
8eb0b612 427
b79f66dd
JT
428A new loader (dloader) has been added which better handles booting from
429multiple kernel/module versions.
430
431To upgrade (Only for this upgrade, for post 2.8 upgrades see GENERAL below)
432
433 cd /usr/src
434 make buildworld
435 make installworld
436 make upgrade
437 make buildkernel KERNCONF=<KERNELNAME>
438 make installkernel KERNCONF=<KERNELNAME>
439
440Note that you must installworld and run the 'upgrade' target before
441installing the new kernel.
442
8eb0b612 443BIND
c983d16e 444-----
8eb0b612
JS
445
446BIND has been removed from the base system. The ldns and drill tools have
447been added for basic functionality. Use 'drill' where you would normally
448use nslookup or dig, or install BIND from pkgsrc. It's available as
449net/bind95, net/bind96, or net/bind97 as of this writing.
450
451This only affects older systems upgrading to 2.8. New 2.8+ installs
452include BIND as a pkgsrc package.
453
d2a0decc
MD
454+-----------------------------------------------------------------------+
455+ UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM +
456+ GENERAL +
457+-----------------------------------------------------------------------+
984263bc 458
a700883c
SW
459Instructions on how to obtain and maintain DragonFly source code using git
460are in the development(7) manual page.
d2a0decc
MD
461
462To upgrade a DragonFly system from sources you run the following sequence:
463
464 cd /usr/src
465 make buildworld
466 make buildkernel KERNCONF=<KERNELNAME>
467 make installkernel KERNCONF=<KERNELNAME>
468 make installworld
469
470You will also want to run the 'upgrade' target to upgrade your /etc and the
471rest of your system. The upgrade target is aware of stale files created by
472older DragonFly installations and should delete them automatically.
473
474 make upgrade
475
a700883c
SW
476See the build(7) manual page for further information.
477
d2a0decc
MD
478Once you've done a full build of the world and kernel you can do incremental
479upgrades of either by using the 'quickworld' and 'quickkernel' targets
480instead of 'buildworld' and 'buildkernel'. If you have any problems with
a700883c 481the quick targets, try updating your repo first, and then a full buildworld
d2a0decc 482and buildkernel as shown above, before asking for help.
4523a2c0
TN
483
484+-----------------------------------------------------------------------+
485+ UPGRADING FROM DRAGONFLY <= 2.0 TO DRAGONFLY >= 2.1 +
486+-----------------------------------------------------------------------+
487
488In 2.1 kernel and modules has moved to boot directory. For most cases
489this is handled automatically by 'make upgrade'. A few cases needs manual
490intervention:
491
492 * When installing a kernel without first doing a make buildworld,
493 installworld and upgrade to the same DESTDIR as kernel:
494 make DESTDIR/boot directory and move kernel and modules into this boot
495 directory; also move kernel.old and modules.old.
496 Typical example is vkernel(7), use (no modules used):
497
498 cd /var/vkernel
499 mkdir boot
500 chflags noschg kernel
501 mv kernel kernel.old boot
502 chflags schg boot/kernel
503
504 * When using a boot-only partition, /boot/loader.rc needs to be edited:
505 delete occurrences of '/boot/'.
506 These occurences can normally be deleted in any case, see loader(8).
d2a0decc
MD
507
508+-----------------------------------------------------------------------+
509+ UPGRADING FROM DRAGONFLY <= 1.8 TO DRAGONFLY >= 1.9 +
510+-----------------------------------------------------------------------+
511
512In 1.9 major changes to the disk management infrastructure have taken
513place. make upgrade may not catch all of your disk devices in /dev,
514so after upgrading be sure to cd /dev; ./MAKEDEV <blah> where <blah>
45e80934
MD
515are all of your disk devices. HOWEVER, from late 2.3 on we run devfs
516and MAKEDEV no longer exists.
d2a0decc
MD
517
518The biggest changes in 1.9 are:
519
520(1) That whole-slice devices such as da0s1 no longer share the same device
521 id as partition c devices such as da0s1c.
522
523(2) The whole-disk device (e.g. da0) is full raw access to the disk,
524 with no snooping or reserved sectors. Consequently you cannot run
525 disklabel on this device. Instead you must run disklabel on a
526 whole-slice device.
527
528(3) The 'compatibility' partitions now use slice 0 in the device name,
529 so instead of da0a you must specify da0s0a. Also, as per (1) above,
530 accessing the disklabel for the compatibility partitions must be
531 done via slice 0 (da0s0).
532
533(4) Many device drivers that used to fake up labels, such as CD, ACD, VN,
534 and CCD now run through the disk management layer and are assigned
535 real disk management devices. VN and CCD in particular do not usually
536 use a MBR and disklabels must be accessed through the compatibility
537 slice 0. Your /etc/ccd.conf file still specifies 'ccd0', though, you
538 don't name it 'ccd0s0' in the config file.
539
540Generally speaking, you have to get used to running fdisk and disklabel on
541the correctly specified device names. A lot of the wiggle, such as running
542disklabel on a partition, has been removed.
543
544+-----------------------------------------------------------------------+
545+ UPGRADING FROM OLDER VERSIONS OF DRAGONFLY OR FREEBSD +
546+-----------------------------------------------------------------------+
547
548> Kerberos IV
549-------------
550
551Kerberos IV (eBones) was removed from the tree, please consider moving to
552Kerberos 5 (Heimdal).
553
554> Package Management System
555---------------------------
556
557Starting with the 1.4 release, DragonFly uses NetBSD's pkgsrc package
558management system. The necessary tools to build and maintain packages
559are provided in /usr/pkg/bin and /usr/pkg/sbin. Make sure that these
560directories are in your PATH variable.
561
562In order to obtain a reasonably current snapshot of the pkgsrc tree, use
563the tarball from NetBSD:
564
565 fetch -o /tmp/pkgsrc.tar.gz ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc.tar.gz
566 cd /usr; tar -xzf /tmp/pkgsrc.tar.gz; chown -R root:wheel pkgsrc
567
568This tree can then be kept up to date with cvs update:
569
570 cd /usr/pkgsrc; cvs up
571
572NOTE! If you upgraded from a pre-1.4 system to 1.4 or later, you need to
573build and install the pkgsrc bootstrap manually:
574
575 cd /usr/pkgsrc/bootstrap
576 ./bootstrap --pkgdbdir /var/db/pkg --prefix /usr/pkg
577
578+-----------------------------------------------------------------------+
579+ UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM +
580+ UPDATING FROM PRE-1.2 SYSTEMS OR FreeBSD 4.x TO +
581+ DRAGONFLY 1.3+ (EITHER PREVIEW or HEAD) +
582+-----------------------------------------------------------------------+
58116288 583
114580ac 584The compatibility shims for the build environment have been removed, you
58116288
JS
585have to update to DragonFly 1.2 release branch first.
586
1fcc7462
JS
587The default PAM configuration has moved from /etc/pam.conf to /etc/pam.d/.
588The existing configuration can be converted using /etc/pam.d/convert.sh.
589Entries in /etc/pam.d/ override entries in /etc/pam.conf. In addition
590the pam_skey.so module was retired, you have to remove it manually from
591your configuration, when you convert it.
58116288 592
a3107071
MD
593> Required user and group IDs when upgrading from either FreeBSD or DragonFly
594---------------------
595
596The following users may be missing from your password file. Use vipw and
597add any that are missing:
598
599smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin
dcf85892 600_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/sbin/nologin
a3107071
MD
601
602The following groups may be missing from your group file. Use vi /etc/group
603and add any that are missing:
604
605smmsp:*:25:
606authpf:*:63:
dcf85892 607_pflogd:*:64:
a3107071
MD
608
609
f419daca 610> Upgrading to DragonFly from FreeBSD
5e0ae0d4 611---------------------
984263bc 612
f419daca
MD
613You can build the DragonFly world and DragonFly kernels on a FreeBSD-4.x or
614FreeBSD-5.x machine and then install DragonFly over FreeBSD, replacing
615FreeBSD. Note that the DragonFly buildworld target does not try to reuse
616make depend information, it starts from scratch, so no pre-cleaning of the
617object hierarchy is necessary.
618
466bbc10 619 # get the CVS repository (it is placed in /home/dcvs, 500MB).
f419daca
MD
620 # Please use the -h option and a mirror site to pull the
621 # initial repository, but feel free to use the main repository
622 # machine to pull updates.
5010eeb3 623 cvsup /usr/share/examples/cvsup/DragonFly-cvs-supfile
f419daca
MD
624 # install the source from the CVS hierarchy (remove preexisting
625 # FreeBSD src first) (500MB)
626 cd /usr
627 rm -rf src
50172b1c 628 cvs -R -d /home/dcvs checkout -P src
f419daca
MD
629
630 # build it (500MB used in /usr/obj)
631 #
632 cd /usr/src
633 make buildworld
634 make buildkernel KERNCONF=<KERNELNAME>
984263bc 635
f419daca
MD
636Once you have built DragonFly you have to install it over FreeBSD. Since
637DragonFly does not track changes made by FreeBSD to its include file
638hierarchy and include file pollution can cause all sorts of unexpected
639compilation issues to come up, it is best to wipe your include hierarchy
640prior to installing DragonFly. Note that you should not wipe any installed
641FreeBSD header files or binaries until after you have successfully completed
642the build steps above.
fb12f484 643
f419daca
MD
644 rm -rf /usr/include
645 mkdir /usr/include
646 make installkernel KERNCONF=<KERNELNAME>
647 make installworld
fb12f484 648
b8cbf045 649Then you need to upgrade your system. DragonFly's 'make upgrade' target
f419daca 650will unconditionally upgrade the /etc files that sysops do not usually
b8cbf045
SW
651mess around with, such as the files in /etc/rc.d. It will also remove any
652obsolete files such as utilities and manpages that have been removed from
653the system since the version you're coming from. If you are unsure we
654recommend that you make a backup of at least your /etc before applying
655this step. Note that DragonFly's RC system is basically RCNG from
656FreeBSD-5, but there are some differences in the contents of the RC files.
f419daca
MD
657
658 make upgrade
659
b8cbf045
SW
660NOTE! Never do a 'make upgrade' before 'make installworld' has been run.
661Doing so might leave your system in an unusable state.
662
f419daca 663Finally we recommend that you do an 'ls -lta BLAH' for /bin, /sbin, /usr/bin,
b8cbf045
SW
664/usr/bin, and /usr/lib, and remove any stale files that you find. Please
665report these files to the DragonFly developers so that they can be added to
666the 'upgrade' target.
f419daca 667