Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2006 12:02:20 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        Marwan Sultan <dead_line@hotmail.com>
Cc:        daleco@daleco.biz, questions@freebsd.org
Subject:   Re: after upgrade from 6.0 to 6.1
Message-ID:  <4466111C.6000302@daleco.biz>
In-Reply-To: <BAY20-F1013EDCFF365C0A79A2DC09AAD0@phx.gbl>
References:  <BAY20-F1013EDCFF365C0A79A2DC09AAD0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000506020804030805070405
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Marwan Sultan wrote:
> Hello everyone,
> 
>   After years of using freebsd i decided this time to make upgrades 
> insted of fresh install,
>   I'm on 6.0-Release and decided to upgrade to 6.1-R
> 
>   I did whats excatly on https://mikestammer.com/doku.php?id=updateos
>   after comparing it to
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
> 
>   The upgrade steps went sucssuflly without an issue or an error,
> 
>   After the upgrades Done, and reboot, i checked the version by uname -a
>  it was still showing 6.0Release ? isnt suppoze to be 6.1-Release ?
> 
> $ uname -a
> FreeBSD Host_Here 6.0-RELEASE-p7 FreeBSD 6.0-RELEASE-p7 #0: Sat May 13 
> 11:34:05 UTC 2006     Host_Here:/usr/obj/usr/src/sys/GENERIC  i386
> 
>  did I do anything wrong?

Looks like it.

>  Is there any missing step?

Yes, if the below is all you did.  Remember that
a OS is a kernel and a "userland" or accompanying
software that the system uses to interact with
the kernel.

>  Please note that I didnot have any custom kernel and i did
> # make buildkernel
> # make installkernel
>  without KERNCONF=MYKERNEL variable? correct?
> 
> Any Advise?
> how to make it 6.1-Release.

See the handbook and Do the Right Thing(TM) ;-)

You must:

1.  Fetch the new sources, usually via cvsup.
2.  Read /usr/src/UPDATING.
3.  If needed, run "mergemaser -p"
4.  Build a new "world" (all userland programs, libs, utils).
5.  Configure your kernel, if desired.
6.  Build a new kernel.
7.  Install the new kernel.
8.  Reboot, preferably in single user mode.
9.  Install the world.
10.  Run 'mergemaster' to update /etc.

I run two scripts that handle everything except 'mergemaster'
and the reading of UPDATING (which, :o, I read often after
the world fails to build instead of before...)  But, since
I'm still working and simply checking me mail periodically,
it's no big deal to me, personally.  I've attached them for
reference --- if you choose to use them, it's at your own
risk, of course.  But you could easily adapt them and test
them and use them yourself if you know sh scripting at all.

Now, if you did indeed follow the correct procedure, I'd
check your supfile first, because you may have fetch the
wrong source code....

Kevin Kinsey

--------------000506020804030805070405
Content-Type: text/plain;
 name="buildworld.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="buildworld.sh"

#!/bin/sh

#  By Kevin Kinsey.  See /COPYRIGHT for details on the
#  BSD license, incorporated herein by reference.

# Variables.  Change to match your setup, paths, etc.

   HOST=`hostname`
   MAILTO=me@mydomain.com
   CVSUPLOGFILE=/home/me/logs/cvsup.src.log
   WORLDLOGFILE=/home/me/logs/buildworld.log
   KERNELLOGFILE=/home/me/logs/kernel.log
   SUPFILE=/stable-supfile
   KERNCONF=/usr/src/sys/i386/conf/GENERIC
   KERNINSTLOG=/home/me/logs/kern.inst.log
   KERNELMESSAGE=/home/me/scripts/kernelmessage.txt

# STEP ONE - CVSUP

#Get to proper wd
   cd /usr/src

# CVSup the source tree
   /usr/local/bin/cvsup $SUPFILE > $LOGFILE 2>&1

#report the activity
   /bin/echo "$HOSTNAME cvsup script reporting" > /tmp/buildlogfoo
   /bin/echo " " >> /tmp/buildlogfoo
   tail $CVSUPLOGFILE >> /tmp/buildlogfoo
   /bin/cat /tmp/buildlogfoo | /usr/bin/mail -s "Server Report $HOST CVSup" $MAILTO

# clean up
   /bin/rm /tmp/buildlogfoo

# STEP 2: buildworld
   /usr/bin/make buildworld > $WORLDLOGFILE 2>&1

# report
   /bin/echo "$HOST buildworld script reporting" > /tmp/buildlogfoo
   /bin/echo " " >> /tmp/buildlogfoo
   tail $WORLDLOGFILE >> /tmp/buildlogfoo
   /bin/cat /tmp/buildlogfoo | /usr/bin/mail -s "Server Report $HOST Buildworld" $MAILTO
   /bin/rm /tmp/buildlogfoo

# This section is modified for my personal setup/preferences and should
# be omitted or changed for your needs.

# Set up kernel options for Firewall, Nat, Dummynet
#   /bin/echo " " >> $KERNCONF
#   /bin/echo "# added by /home/me/scripts/buildworld.sh " >> $KERNCONF
#   /bin/echo " " >> $KERNCONF
#   /bin/echo "options   IPFIREWALL" >> $KERNCONF
#   /bin/echo "options   IPFIREWALL_VERBOSE_LIMIT=10" >> $KERNCONF
#   /bin/echo "options   IPDIVERT" >> $KERNCONF
#   /bin/echo "options   DUMMYNET" >> $KERNCONF
#   /bin/echo "options   HZ=1000" >> $KERNCONF
#   /bin/echo " " >> $KERNCONF
 
# Build the kernel
   /usr/bin/make buildkernel > $KERNELLOGFILE 2>&1
   tail $KERNELLOGFILE > /tmp/kernelfoobuild
   /bin/cat $KERNELMESSAGE /tmp/kernelfoobuild | /usr/bin/mail -s "$HOST Kernel Build Report" $MAILTO
   /bin/rm /tmp/kernelfoobuild 

# Install the new kernel
   /usr/bin/make installkernel > $KERNELINSTLOG 2>&1
   /bin/echo "Kernel installation report - $HOST " >> /tmp/kernelinstallfoo
   /bin/cat /tmp/kernelinstallfoo $KERNELINSTLOG | /usr/bin/mail -s "$HOST kernel install report" $MAILTO
   /bin/rm /tmp/kernelinstallfoo 

--------------000506020804030805070405
Content-Type: text/plain;
 name="buildworld2.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="buildworld2.sh"

#! /bin/sh

# By Kevin Kinsey.  See ./COPYRIGHT for the BSD license,
# incorporated herein by reference.

#Variables
   $LOGFILE=/home/me/logs/worldinstall
   $HOST=`hostname`
   $MAILTO=me@mydomain.com

# Finish up the process by installing the world built in buildworld.sh
   cd /usr/src
   /usr/bin/make installworld > $LOGFILE 2>&1
   /bin/echo "$HOST reporting on World Install" > /tmp/worldinstallfoo
   /bin/echo " " >> /tmp/worldinstallfoo
   /usr/bin/tail $LOGFILE >> /tmp/worldinstallfoo
   /bin/cat /tmp/worldinstallfoo | mail -s "$HOST Script Report: Install World" $MAILTO
   /bin/rm /tmp/worldinstallfoo

--------------000506020804030805070405
Content-Type: text/plain;
 name="kernelmessage.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="kernelmessage.txt"

$HOST successfully built
a GENERIC kernel plus Firewall,
Divert and Dummynet options.


--------------000506020804030805070405--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4466111C.6000302>