geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


Howto: Mergemaster and Make World.
Upgrading FreeBSD Posted by Understudy on Sunday May 11, @12:50PM
from the panic,confusion and segfault dept.
Somewhere buried in the articles and replies, Jason hinted at someone writing a Make World article. I can't find the orginal quote, but I remember it. So here we go.
Well another howto: . This time on how to upgrade your FreeBSD OS. This includes some heavy notes on how to use mergemaster also. Mergemaster is your friend when doing a trip through Make World.The article is broken down here for quick reference.

The entire article from the top.

The Breakdown:
uname -a
cvsup stable-supfile
make.conf
cd /usr/src
mergemaster -p
make buildworld
make buildkernel KERNCONF=KERNNAME
make installworld
make install kernel KERNCONF=KERNNAME
mergemaster
shutdown -r +3
uname -a
df -h
cd /usr/src; make clean
cd /usr/ports; make clean
df -h
The FAQ you never really asked
The Credits

The article also links to my makeshift glossary

I hope you enjoy your trip through Make World.

<  |  >

 

Related Links
  • Articles on Upgrading FreeBSD
  • Also by Understudy
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: Howto: Mergemaster and Make World.
    by opus on Saturday July 24, @07:23AM
    Before you do this, be sure you read "/usr/src/UPDATING". Much to my dismay, I forgot to and ended up with a wreck.

    [snip] 20031112: The statfs structure has been updated with 64-bit fields to allow accurate reporting of multi-terabyte filesystem sizes. You should build world, then build and boot the new kernel BEFORE doing a `installworld' as the new kernel will know about binaries using the old statfs structure, but an old kernel will not know about the new system calls that support the new statfs structure. Note that the backwards compatibility is only present when the kernel is configured with the COMPAT_FREEBSD4 option. Since even /bin/sh will not run with a new kernel without said option you're pretty much dead in the water without it. Make sure you have COMPAT_FREEBSD4! Running an old kernel after a `make world' will cause programs such as `df' that do a statfs system call to fail with a bad system call. Marco Wertejuk also reports that cfsd (ports/security/cfs) needs to be recompiled after these changes are installed. ****************************DANGER*******************************
    DO NOT make installworld after the buildworld w/o building and installing a new kernel FIRST. You will be unable to build a new kernel otherwise on a system with new binaries and an old

    [/snip]

    [ Add a Reply to this ]
    Re: Howto: Mergemaster and Make World.
    by Understudy on Saturday July 24, @12:41PM
    You bring up a good point if you are running a 5.x branch of FreeBSD. Please note this does not apply to the 4.x branch. I haven't made the swing up to 5.x yet. And from what I am gathering I would be better off doing a fresh install of 5.x than a make world. I would just have to copy over my custom files and directories. I am waiting for 5.x to release a STABLE before I do.
    [ Add a Reply to this ]
    Re: Howto: Mergemaster and Make World.
    by anonymous on Thursday September 22, @04:28AM
    make install kernel KERNCONF=KERNNAME should be make installkernel KERNCONF=KERNNAME
    [ Add a Reply to this ]
    • Re: Howto: Mergemaster and Make World.
      by Undestudy on Thursday September 22, @06:46AM
      You are correct. The typo doesn't exist in the article just in this post. I can't correct here but it is correct in the story.
      [ Reply to this ]
    Re: Howto: Mergemaster and Make World.
    by Pierre on Sunday March 19, @10:50AM
    Anybody knows how different it is to do a make world in freebsd 6 than what Understudy does in Freebsd 4?
    [ Add a Reply to this ]
    • Re: Howto: Mergemaster and Make World.
      by Understudy on Sunday March 19, @11:30AM
      The steps for FreeBSD 6 are similar but in a different order.
      cvsup stable-supfile
      make buildworld
      make kernel KERNCONF=YOUR_KERNEL_HERE
      mergemaster -p
      make installworld
      mergemaster -i
      <reboot>
      Hope that helps.

      Brendhan
      [ Reply to this ]
      • Re: Howto: Mergemaster and Make World.
        by Pierre on Sunday March 19, @12:24PM
        thank you so much... I used your howto a lot for my v4 machines (after you linked it to me in an IRC chat) and I got a little lost when I tried to do it on my v6 and could not find a make.conf ;)).

        Thanks again!

        Pierre
        [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]