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.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 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
installworld)
7. update /etc, /dev, (and optionally
/stand)
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
kernel
6.make merge - merges the results

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

QUESTIONS:
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.

John

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: John Daniels 
Date:   28-05-00 17:12

Pease insert " ;) " after the "mere mortals comment. My post was not meant to be insulting or derogatory.

I was actually happy to see that something was written about upgrading to STABLE, and I used the script (modified), it just seems that some examination of what is recommended in the handbook should have been added to avoid any confusion.

John

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Dan Langille 
Date:   28-05-00 21:41

1) does mergemaster update /dev also?

I don't know.

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?

Your choice. If you note my recommended amendment to that script, you'll see that I change "-a" to "-w 120" which will present all changes to you for semi-automated merging. If you choose -a, you'll have to do those 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)?

Pass. Where I'm doing I've never had a problem. For a better answer, try freebsd-questions@freebsd.org.

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")

Whenever you want. If you have lots of disk space, for for it. I only do it when I think of it. I used to do it after each build world, but now I want until after I have a successful build and reboot (I forgot to do the make install and had done a make clean, which meant I had to do another make world first...).

> Did you look at the handbook at all before you did your upgrade?

Yes.

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Flipper 
Date:   31-05-00 14:06

What annoys me is rebooting into single user mode,
does this HAVE to be done, because if it must be done it means that you cannot upgrade from 3.4-STABLE to 4.0-STABLE remotely.

Anyone help me out?

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Torfinn Ingolfsen 
Date:   31-05-00 19:38

Does anybody know how to update the sources with ftp instead of cvsup?
(I'm behind a firewall with rules that I'm not allowed to change, and it doesn't pass outgoing on port 5999...)
The handbook mentions that the sources can be upgraded by ftp, I'm looking for an easy way to do that. I've tried with /stand/sysinstall (Distributions) without luck.
Any pointers?
--
Yours,
Torfinn Ingolfsen
Norway

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Dan Langille 
Date:   31-05-00 20:22

RTFM.

At <a href="http://www.freebsd.org/handbook/makeworld.html">http://www.freebsd.org/handbook/makeworld.html</a> it clearly states under "18.4.4. Drop to single user mode", second paragraph:

"That said, if you are confident, you can omit this step."

So no, you do not have to do this in single user mode.

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Dan Langille 
Date:   01-06-00 04:03

Have you considered CTM? Look in the handbook under upgrading (or where it talks about stable/current. Failing that, post a message to freebsd-questions@freebsd.org and let us know what you find.

Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: Dan Langille 
Date:   01-06-00 09:11

I stumbled across this at <a href="http://www.freebsd.org/handbook/current-stable.html">http://www.freebsd.org/handbook/current-stable.html</a>:

The source tree for FreeBSD-STABLE is always ``exported'' on: ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-stable/


Reply To This Message
 
 Re: upgrading to 4.0-STABLE
Author: gill 
Date:   16-06-00 16:52


In the Makefile from Joe Mock referenced in the article, there is a section to make

clobber:
clean
rm -rf /usr/src/*

what situation would this be used for?

I used it without fully thinking about it / understanding it and now that i've got plenty of time to think about it (as I try to reconstruct my kernel config files from scratch), I'm wondering when it would be the *right* thing to do?

comments?

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


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org