From owner-freebsd-questions@FreeBSD.ORG Sat May 13 17:02:29 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20E2A16A40F for ; Sat, 13 May 2006 17:02:29 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id A519F43D49 for ; Sat, 13 May 2006 17:02:28 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k4DH2QnQ071874; Sat, 13 May 2006 12:02:26 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4466111C.6000302@daleco.biz> Date: Sat, 13 May 2006 12:02:20 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.2) Gecko/20060509 SeaMonkey/1.0.1 MIME-Version: 1.0 To: Marwan Sultan References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------000506020804030805070405" Cc: daleco@daleco.biz, questions@freebsd.org Subject: Re: after upgrade from 6.0 to 6.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 17:02:29 -0000 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--