From owner-freebsd-stable@FreeBSD.ORG Tue Jun 1 09:57:43 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1344106566C for ; Tue, 1 Jun 2010 09:57:43 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 55B9B8FC0A for ; Tue, 1 Jun 2010 09:57:42 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so1318423fga.13 for ; Tue, 01 Jun 2010 02:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=w513zRPvvw2+SHAb5BM2UbffOYzbFecJEAm2JAbgnJg=; b=DBTj8gDtzXwMk8bgsmGdzQ724I+3hkPHVCONpfjYJB0tw/LsxG6tx+jCN9KvlBl7Hw g9OKm8aA4OxdkTikoFzD4lhCYzJeA3VwQ5x8odFOOJbz4l0Y2S3BGJ40dj9e8dhsYl7u J5C3pfK5Ec9qOZh1MUFN1hfD7ylIM+RttKd5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d8Mzd4rS+jdWdeCMZL5c82e+aI5XV8WH6ieItsvWhNYK1q3dN3OsEioOVY2TPb1Lb9 JmaKIDuHtyYz18lLGhdWw5Ae61/jMlYe8lFFJCY3HW/Lp7fmzu7/G4ZbxQvGgMDKd1J4 +EGfFD2+sCGLXeNIhiTuXPxaDIvbfzjz9luh4= MIME-Version: 1.0 Received: by 10.87.1.2 with SMTP id d2mr10904698fgi.34.1275386260520; Tue, 01 Jun 2010 02:57:40 -0700 (PDT) Received: by 10.86.9.6 with HTTP; Tue, 1 Jun 2010 02:57:40 -0700 (PDT) In-Reply-To: <20100601094506.GA25207@twoquid.cs.ru.nl> References: <20100601094506.GA25207@twoquid.cs.ru.nl> Date: Tue, 1 Jun 2010 13:57:40 +0400 Message-ID: From: c0re To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: freebsd-update with non-GENERIC kerrnel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 09:57:44 -0000 freebsd-update made for only GENERIC kerndel due to binary diff patches. After you rebuild world and kernel you'll be not able to apply binary patches. 2010/6/1 Olaf Seibert > I find the way freebsd-update handles a system that runs a non-GENERIC > kernel less than helpful. > > It is doing this: > > | fourquid.3:~$ sudo freebsd-update upgrade -r 8.1-BETA1 > | Password: > | Looking up update.FreeBSD.org mirrors... 3 mirrors found. > | Fetching metadata signature for 8.0-RELEASE from update5.FreeBSD.org... > done. > | Fetching metadata index... done. > | Fetching 2 metadata patches.. done. > | Applying metadata patches... done. > | Inspecting system... done. > | > | WARNING: This system is running a "fourquid" kernel, which is not a > | kernel configuration distributed as part of FreeBSD 8.0-RELEASE. > | This kernel will not be updated: you MUST update the kernel manually > | before running "/usr/sbin/freebsd-update install". > | > | The following components of FreeBSD seem to be installed: > | src/base src/bin src/cddl src/contrib src/crypto src/etc src/games > | src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue > | src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin > | world/base world/catpages world/dict world/doc world/games world/info > | world/lib32 world/manpages world/proflibs > | > | The following components of FreeBSD do not seem to be installed: > | kernel/generic > | > | Does this look reasonable (y/n)? n > > I do have the kernel sources installed, so I would like to have them > updated. I don't even mind to have a GENERIC kernel temporarily > installed, until I compile my own (fortunately, they are not that > different). > > It is nice that it tells me that I "MUST update the kernel manually", > but it gives me no help in getting the sources and doing that. (Can the > new kernel even be built in all cases with old tools? NetBSD offers a > nice cross-building system for that.) > > For my previous update to 8.0-RELEASE-p2 I patched freebsd-update simply > to think that my kernel *is* GENERIC, > > --- /usr/sbin/freebsd-update 2009-12-22 17:16:01.000000000 +0100 > +++ /tmp/freebsd-update 2010-05-11 10:35:05.000000000 +0200 > @@ -631,6 +631,7 @@ > # we're running an SMP kernel. This mis-identification is a bug > # which was fixed in 6.2-STABLE. > KERNCONF=`uname -i` > + KERNCONF=GENERIC > if [ ${KERNCONF} = "SMP-GENERIC" ]; then > KERNCONF=SMP > fi > > but that seems riskier as updates get a bit bigger. > > The official way seems to be to reboot using GENERIC, upgrade (with a > reboot with new GENERIC), rebuild new CUSTOM kernel, reboot again. At > least the first reboot ought to be avoided... > > -Olaf. > -- > _______________________________________________ > 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" >