From owner-freebsd-questions@FreeBSD.ORG Sun Mar 7 13:39:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32B4E106566B for ; Sun, 7 Mar 2010 13:39:06 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-yx0-f201.google.com (mail-yx0-f201.google.com [209.85.210.201]) by mx1.freebsd.org (Postfix) with ESMTP id E54B88FC1F for ; Sun, 7 Mar 2010 13:39:05 +0000 (UTC) Received: by yxe39 with SMTP id 39so8091yxe.3 for ; Sun, 07 Mar 2010 05:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=vIFNzlFhR6bhaHCq9IeoragByAdFlK3WrqGPEe4jwcM=; b=DmzEyHgY8osbVCmaz50kmrOTU9GoncWJj56RSCUZo3Eyh1sPbxjFQAZItirggIQ9gJ 166r0Uh1QdiSzmq3KRh+yy5Xp1SbW+Ww12cfBMKdycjyd+LMASe0TQczi1YyW+uKuIvx L9lAGvTjV2aWHRIjk0BvOnlLXj0/Uow8Cb5rQ= 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=g+iziqqT+XUdL6ohVOos7xh/wzwXU2zaFbiwnHD/DQHJXOcKB0OmxIkkU/uytIg6WD 6mrNik6AGNEkIIji7G50JGaPai5BqhCF4/7Ly5bmf/9IFMU1DRUqp7cKqZU2l8FqD5C6 V6xh0uDVQdgxTDEZwJpF2HefjoCtMeCJLMvbE= MIME-Version: 1.0 Received: by 10.101.186.30 with SMTP id n30mr6781316anp.180.1267969145066; Sun, 07 Mar 2010 05:39:05 -0800 (PST) In-Reply-To: References: Date: Sun, 7 Mar 2010 15:39:05 +0200 Message-ID: From: Dan Naumov To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: freebsd-update on a 8.0 rootzfs system 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: Sun, 07 Mar 2010 13:39:06 -0000 On Sun, Mar 7, 2010 at 1:57 PM, Dan Naumov wrote: > Hello folks > > I have a 8.0 system that uses zfsroot and gptzfsboot. It uses the > GENERIC kernel and the only thing that had to be manually recompiled > is obviously the bootloader, to enable zfs boot support, other then > that, the system is using stock 8.0 binaries. Since fully rebuilding > world and kernel on this system is a 5 hour process, I would very much > like to use freebsd-update and I wanted someone to clarify the > utility's behaviour. If I run freebsd-update on this system, what will > it do when it detects that the bootloader binaries do not match those > of stock 8.0-RELEASE? Will it: > > 1) Ignore the changed/recompiled bootloader files completely, only > updating the binaries whose checksums it can recognize. This behaviour > is alright for updating within 8.0, updating for release errata, but > would cause some problems updating to 8.1 and further, since 8.1 will > have zfs capable bootloader by default and having freebsd-update > always completely ignore a system component that has once been > recompiled sounds a bit silly. > > 2) Happily update the system, overwrite my custom compiled bootloader, > forcing me to manually rebuild the bootloader again before I reboot > the system. This I guess would actually be the desired behaviour OK, I did a testrun of this in a VM environment and #1 is what happens. I tried "freebsd-update IDS" first and that showed that /boot/loader SHA256 does not match what is expected, I then applied the updates, but it ignored my custom /boot/loader anyway and didn't touch it despite the mismatch. Why? My biggest concern is what does this mean going forward, when the eventual time for upgrading to 8.1 and 8.2 comes. 8.1 definately has a changed bootloader. Does the current behaviour mean that when I upgrade to 8.1, it will still refuse to update the bootloader and will refuse to update it forever or will it actually update "whatever is given" to 8.1, which would be the desired behaviour? - Sincerely, Dan Naumov