From nobody@FreeBSD.org  Thu Oct 13 09:43:35 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5D4BE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 09:43:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4D3578FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 09:43:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9D9hYYm054139
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 09:43:34 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9D9hYFP054138;
	Thu, 13 Oct 2011 09:43:34 GMT
	(envelope-from nobody)
Message-Id: <201110130943.p9D9hYFP054138@red.freebsd.org>
Date: Thu, 13 Oct 2011 09:43:34 GMT
From: vermaden <vermaden@interia.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gzippped kernel is not updated by FREEBSD-UPDATE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161540
>Category:       bin
>Synopsis:       gzippped kernel is not updated by freebsd-update(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cperciva
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 09:50:11 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Mar 12 02:03:48 UTC 2012
>Originator:     vermaden
>Release:        8.1-RELEASE
>Organization:
>Environment:
8.1-RELEASE (stock)
>Description:
If You GZIP you kernel (gzip -9 /boot/kernel/kernel) then it will not be later updated by the FREEBSD-UPDATE tool.
>How-To-Repeat:
# cd /boot/kernel
# gzip -9 kernel
# ls kernel.gz
kernel.gz
# ls kernel
ls: kernel: No such file or directory
# freebsd-update upgrade -r 8.2-RELEASE
# freebsd-update install
# shutdown -r now
# freebsd-update install
# shutdown -r now

.. and after all upgrade process /boot/kernel/kernel.gz remains untouched, but there is also no newer /boot/kernel/kernel installed to use instead of the gzipped one.

>Fix:
Check if kernel is gzipped or also install new stock kernel.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Oct 13 14:34:40 UTC 2011 
Responsible-Changed-Why:  
Hi Colin, 

This is your toy, can you have a look at whether it makes sense? I know the 
tool only looks for files that exist and change them if they are different 
on the build-box and this had seen manual fiddling so it ignores them. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161540 
>Unformatted:
