View Single Post
  #1   (View Single Post)  
Old 19th May 2009
Greg_Morgan Greg_Morgan is offline
Port Guard
 
Join Date: May 2009
Posts: 13
Default Following Stable. Why uname does NOT show patch #6.

Hi.

I am a newbie. I installed OpenBSD 4.5 release on a laptop. I want my installation to have the latest patches. So I downloaded the latest sources (from the stable branch) and compiled the kernel. When I rebooted the machine, I expected the uname -v to tell that I have patch six. (ie. GENERIC#6). However, I did not get this. I got GENERIC#0.

The first line of dmesg says:
OpenBSD 4.5-stable (GENERIC) #0: Fri May 15 15:34:00 CDT 2009

Please tell me as to what I am doing wrong.

This is the script I use:

#! /bin/ksh

#Step #1: Get the source code.

# Get the complete source code
cd /usr
export CVSROOT=anoncvs@obsd.cec.mtu.edu:/cvs
cvs -d$CVSROOT checkout -rOPENBSD_4_5 -P src ports xenocara

# Get the updates to kernel.
cd /usr/src
export CVSROOT=anoncvs@obsd.cec.mtu.edu:/cvs
cvs -d$CVSROOT up -rOPENBSD_4_5 -Pd

# Get the updates to ports.
cd /usr/ports
export CVSROOT=anoncvs@obsd.cec.mtu.edu:/cvs
cvs -d$CVSROOT up -rOPENBSD_4_5 -Pd

# Get the updates to x-window system(aka xenocara)
cd /usr/xenocara
export CVSROOT=anoncvs@obsd.cec.mtu.edu:/cvs
cvs -d$CVSROOT up -rOPENBSD_4_5 -Pd
#----------------------------------------------------------------------------

# Step #2: Build the kernel.

cd /usr/src/sys/arch/`machine`/conf
/usr/sbin/config GENERIC
cd /usr/src/sys/arch/`machine`/compile/GENERIC
make clean && make depend && make
make install

touch new_kernel_available.000
reboot


NB:
Once I have this squared away, I plan to comment out the checkout lines and just retain update.
I have a companion script, that is run at boot up time. That script, will test the presence of a file "new_kernel_available.000". If one is present, it will re-compile the userland objects, else it will not. If userland is compiled successfully, my script will delete my flag file "new_kernel_avilable.000", so that subsequent reboots, do not force user land re-compile.

In the above script, please tell me where am i going wrong? Why do I not get the latest patches?

Thanks.
Sincerely,
Greg Morgan.
Reply With Quote