The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: upgrading to 4.0-STABLE
Author: John Daniels 
Date:   28-05-00 12:23

The handbook says that sync-ing to up-to-date sources (-STABLE or -CURRENT) should be done as follows (simplified, of course):
1. backup
2. CVsup
3. check /etc/make.conf and /etc/group
4. drop to single-user mode
5. remove /usr/obj
6. make world (or make buildworld and make
7. update /etc, /dev, (and optionally
8. compile and install a new kernel
9. reboot (with fastboot)

Your article on upgrading to stable lists this order (truncated):

2.make update - updates your source files
3.make build - does a build world
4.make install - installs the results of
the above
5.make kernel - builds and installs a new
6.make merge - merges the results

NOTE:"make merge" just runs mergemaster which
is a utility for doing the update to /etc.

1) does mergemaster update /dev also?
2) when mergemaster asks (just before it finishes) if /usr/tmp should be deleted - should I respond "yes"? - what if there are still files to review by hand?
3) should merge master be done *before* a new kernel is built and installed (as per the handbook) or *after* (as per your script)?
4) when should the "make clean" from your script be done? After all, the handbook shows "cleaning" /usr/obj before the make buildworld. I believe there is a discussion in the handbook about keeping the object files around (it seems to recommend to do so, and to only delete them before the "make buildworld")

Did you look at the handbook at all before you did your upgrade? Most of us mortals (esp. newbies) have to/generally do so. And I wouldn't be surprised if you get more emails questioning the differences in your procedure and the handbook.

The handbook has been updated in the last couple of months, although the make world section still doesn't talk about mergemaster. Doug Barton has informed me that he is working on updating the make world documentation.


 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Re: upgrading to 4.0-STABLE   new
John Daniels 28-05-00 12:23 
 Re: upgrading to 4.0-STABLE   new
John Daniels 28-05-00 17:12 
 Re: upgrading to 4.0-STABLE   new
Dan Langille 28-05-00 21:41 
 Re: upgrading to 4.0-STABLE   new
Flipper 31-05-00 14:06 
 Re: upgrading to 4.0-STABLE   new
Dan Langille 31-05-00 20:22 
 Re: upgrading to 4.0-STABLE   new
Torfinn Ingolfsen 31-05-00 19:38 
 Re: upgrading to 4.0-STABLE   new
Dan Langille 01-06-00 04:03 
 Re: upgrading to 4.0-STABLE   new
Dan Langille 01-06-00 09:11 
 Re: upgrading to 4.0-STABLE   new
gill 16-06-00 16:52 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum