martinko
2009-Dec-31 09:41 UTC
uname(1) does not show system is patched via freebsd-update(8)
Hallo, The system here seems to be patched yet I do not see the information in uname(1) output (see below). Is this a bug or my error or what ? Cheers, Martin -- mb-aw1n-bsd[/root]# freebsd-update install No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. mb-aw1n-bsd[/root]# freebsd-update fetch Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 8.0-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 8.0-RELEASE-p1. mb-aw1n-bsd[/root]# uname -a FreeBSD mb-aw1n-bsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Виталий Моисеев
2009-Dec-31 09:50 UTC
uname(1) does not show system is patched via freebsd-update(8)
Do you make a kernel rebuild after patched? i use custom kernel and rebuild it after freebsd-update pppoe-server# uname -a FreeBSD pppoe-server.expressnikopol.net.ua 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #2: Fri Dec 4 15:10:18 EET 2009 rot@pppoe-server.en.net.ua:/usr/obj/usr/src/sys/PPPOE amd64 2009/12/31 martinko <gamato@users.sf.net>:> Hallo, > > The system here seems to be patched yet I do not see the information in > uname(1) output (see below). ?Is this a bug or my error or what ? > > Cheers, > > Martin > > -- > > mb-aw1n-bsd[/root]# freebsd-update install > No updates are available to install. > Run '/usr/sbin/freebsd-update fetch' first. > mb-aw1n-bsd[/root]# freebsd-update fetch > Looking up update.FreeBSD.org mirrors... 3 mirrors found. > Fetching metadata signature for 8.0-RELEASE from update4.FreeBSD.org... > done. > Fetching metadata index... done. > Inspecting system... done. > Preparing to download files... done. > > No updates needed to update system to 8.0-RELEASE-p1. > mb-aw1n-bsd[/root]# uname -a > FreeBSD mb-aw1n-bsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 > UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC ?i386 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >-- WBR, ??????? ???????, vm@vm.net.ua VM347-RIPE, VM265-UANIC ICQ# 111222168 wave: vitaly.moiseev@googlewave.com
Edho P Arief
2009-Dec-31 09:50 UTC
uname(1) does not show system is patched via freebsd-update(8)
2009/12/31 martinko <gamato@users.sf.net>:> Hallo, > > The system here seems to be patched yet I do not see the information in > uname(1) output (see below). ?Is this a bug or my error or what ? > > Cheers, > > Martin >only latest patch with updated kernel can be seen with uname. (it shows kernel version, afterall) -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Manolis Kiagias
2009-Dec-31 10:25 UTC
uname(1) does not show system is patched via freebsd-update(8)
On 31/12/2009 11:40 ?.?., martinko wrote:> Hallo, > > The system here seems to be patched yet I do not see the information > in uname(1) output (see below). Is this a bug or my error or what ? > > Cheers, > > Martin >This is normal. The patch level shown is not updated, unless one of the following applies: 1. You are running a GENERIC kernel *and* the kernel was updated as part of the freebsd-update patching process (This was not the case with 8.0-RELEASE-p1, these patches did not affect the kernel) 2. You rebuild your kernel after the update (you may rebuild GENERIC or your own custom kernel). Assuming you have the sources installed, freebsd-update will update them along with the binaries. The patch level is in the file /usr/src/sys/conf/newvers.sh. Check it out and you will see a line "BRANCH=RELEASE-p1". This is what will be used if you rebuild your kernel. Keep in mind that if the sole purpose of this is to have the patch level info handy, you may simply override the value returned by uname -r using i.e. the following: export UNAME_r=8.0-RELEASE-p1 but you have to remember to keep this synchronized with the actual patch level :)
martinko
2010-Jan-01 17:37 UTC
uname(1) does not show system is patched via freebsd-update(8)
Manolis Kiagias wrote:> On 31/12/2009 11:40 ?.?., martinko wrote: >> Hallo, >> >> The system here seems to be patched yet I do not see the information >> in uname(1) output (see below). Is this a bug or my error or what ? >> >> Cheers, >> >> Martin >> > > This is normal. The patch level shown is not updated, unless one of the > following applies: > > 1. You are running a GENERIC kernel *and* the kernel was updated as part > of the freebsd-update patching process (This was not the case with > 8.0-RELEASE-p1, these patches did not affect the kernel) > 2. You rebuild your kernel after the update (you may rebuild GENERIC or > your own custom kernel). Assuming you have the sources installed, > freebsd-update will update them along with the binaries. The patch level > is in the file /usr/src/sys/conf/newvers.sh. Check it out and you will > see a line "BRANCH=RELEASE-p1". This is what will be used if you rebuild > your kernel. > > Keep in mind that if the sole purpose of this is to have the patch level > info handy, you may simply override the value returned by uname -r using > i.e. the following: > > export UNAME_r=8.0-RELEASE-p1 > > but you have to remember to keep this synchronized with the actual patch > level :) >Thanks for the explanation! It all make sense now. Still I believe that correct info should be displayed by uname(1) somehow now that we have binary updates available. Regards, Martin